1.

Solve : Need to run batch file using runas command?

Answer»

I need to RUN RD "C:\Documents and Settings\administrator\Application Data\Temp" /s /q
the above command using batch file.I am able to run by saving this temp.bat file successfully,but I want to run using DOMAIN user login using runas /noprofile /savecred /user:mypc\administrator temp.bat it says "The SYSTEM cannot find the file specified" error message.

Any suggestions will be appreciated.

Alfred

Try using the full PATH to temp.bat, using quotes if there are any spaces.



Discussion

No Comment Found