AutoHotkey Community

It is currently May 26th, 2012, 4:17 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: April 15th, 2009, 1:30 pm 
Offline

Joined: December 3rd, 2008, 5:37 am
Posts: 158
Location: chennai,india
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......


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 1:38 pm 
Offline

Joined: May 12th, 2005, 8:20 am
Posts: 331
Location: Münster, Germany
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


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: BrandonHotkey, Cerberus, poserpro 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