AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem With RunAs Commmand

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
chandru155



Joined: 03 Dec 2008
Posts: 158
Location: chennai,india

PostPosted: Wed Apr 15, 2009 12:30 pm    Post subject: Problem With RunAs Commmand Reply with quote

I want to run a Batch file(.bat) with administrative privilage. For this i used RunAs commmand. The code is
Code:

RunAs,Administrator,mypassword
Run,MyBatchfile.bat
RunAs


This code is not working. What should i do to run it. Any Idea? Urgent......
Back to top
View user's profile Send private message Yahoo Messenger
Klaus



Joined: 12 May 2005
Posts: 325
Location: Münster, Germany

PostPosted: Wed Apr 15, 2009 12:38 pm    Post subject: Reply with quote

Hi, chandru155,
only to be complete:
1) You coded the real password (not to offend you)?
2) The batch file can be found via system path? If not, use the batch file's complete path like c:\batch\..\..\MyBatchfile.bat.
Hope it helps,
Klaus
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group