| View previous topic :: View next topic |
| Author |
Message |
chandru155
Joined: 03 Dec 2008 Posts: 158 Location: chennai,india
|
Posted: Wed Apr 15, 2009 12:30 pm Post subject: Problem With RunAs Commmand |
|
|
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 |
|
 |
Klaus
Joined: 12 May 2005 Posts: 325 Location: Münster, Germany
|
Posted: Wed Apr 15, 2009 12:38 pm Post subject: |
|
|
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 |
|
 |
|