How to run a batch , .bat, flle as administrator

Page 3 of 3 FirstFirst 123

  1. Posts : 1,049
    Windows 7 Pro 32
       #21

    It runs taskeng.exe when I test on my PC, not cmd.exe

    In the task field "Program/script", have you entered only the batch file or are you starting it like this? Example:
    "c:\windows\system32\cmd.exe /C C:\adminparams.bat"

    Try and specify only the batch file if you're using the above start method.
      My Computer


  2. Posts : 1,049
    Windows 7 Pro 32
       #22

    One more thing to try assuming you got the test batch to run also with arguments:

    open the properties window for your scheduled task, then go back and open the properties for my test file. Put the 2 property windows side by side and go through all tabs and settings in both to see if anything is different.
      My Computer


 
Page 3 of 3 FirstFirst 123

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:41.
Find Us