AutoHotkey Community

It is currently May 27th, 2012, 12:27 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: RunAs Command
PostPosted: January 22nd, 2009, 5:29 pm 
Offline

Joined: August 1st, 2008, 3:16 pm
Posts: 16
I am struggling to use the RunAs command. I would like to run a batch file with it, which will map a network drive. Then once mapped I would like to run an executable. However when the second executable runs the script has reverted to the original user. Here is the part of my script, does anyone have any suggestions.

Yours hopefully
Rob

Script:

RunAs, username, password, domain
RunWait, %_BatchFileFound%,, Max, _ProcessPID
Process, Close, %_ProcessPID%
Sleep 1000
BlockInput, on
Run, %_AppInstallPath%
RunAs


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 26th, 2009, 6:30 pm 
Offline

Joined: January 25th, 2009, 9:18 pm
Posts: 34
Could you just use RunAs both times?

_________________
Go to http://www.lingokite.com to find out about Lingokite, the revolution in language learning technology


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: chaosad, Exabot [Bot], Google Feedfetcher, jrav and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group