Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Need to run batch file using runas command  (Read 3859 times)

0 Members and 1 Guest are viewing this topic.

Alfred Leonce

    Topic Starter


    Greenhorn

    • Experience: Experienced
    • OS: Windows XP
    Need to run batch file using runas command
    « on: May 05, 2013, 09:21:25 AM »
    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


    Salmon Trout

    • Guest
    Re: Need to run batch file using runas command
    « Reply #1 on: May 05, 2013, 10:47:10 AM »
    Try using the full path to temp.bat, using quotes if there are any spaces.