Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to run a batch , .bat, flle as administrator

09 Dec 2014   #21
Tookeri

Windows 7 Pro 32
 
 

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 System SpecsSystem Spec
.
10 Dec 2014   #22
Tookeri

Windows 7 Pro 32
 
 

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 System SpecsSystem Spec
Reply

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




Thread Tools




Similar help and support threads
Thread Forum
UAC - Batch Files just Blink (Do Nothing) when Run-as-Administrator
If the following is true: 1. A batch file resides in a path that is unprotected by windows like C:\Temp or D:\Anything, and, 2. any of the folders in the path, or the name of the batch file, contain the "(" opening parenthesis, and, 3. the batch file is run by clicking/selecting...
System Security
How do I make this Batch run as Administrator by default?
I haven't looked back since recently and initially reluctantly upgrade from XP to Windows 7. Just loving it now. But I have a small BATCH file problem. I found and adapted a batch file (see below) to start the VAG parts catalogue program after first resetting the system date but then...
Software
Can no longer run batch files unless as administrator
Windows 7 64-bit Home Premium - Dell 660 w/i5 Intel - 8GB RAM I've been running the same batch files for several years with the same login account. Now, all of a sudden, I have to run them as administrator. My personal account already is an 'administrator' and not a standard user account. ...
General Discussion
How to always run batch file as administrator?
I've made a batch file, but i don't know how to make it to always run as administartor. In .bat's file properties the option "always run as administartor" is grayed out. I have to right click it and then choose "run as administartor" from context menu. But i don't want to do it every time because...
General Discussion
batch files - run as administrator
I am a software developer (dot net). Until recently I did all my work in the XP environment. I developed a utility library that goes into the global assembly cache. In the XP world this was easy. I write some .bat files that called the gacutil.exe and passed it the appropriate parameters. ...
General Discussion


Our Sites

Site Links

About Us

Find 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 21:20.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App