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: execute a .bat and .exe file as administrator once for all


06 Oct 2011   #1

Windows 7 32bit
 
 
execute a .bat and .exe file as administrator once for all

hello,
Once i double click on bat file, a new program .exe is launched and receive a msg asking if i allow the program to modify my computer. I click yes, and my short life continues...
Any clue what can be done to remove this msg once for all for this program ?

After right click on .bat file, i choose property and then compatibility tab.
The option to change the privilege level is faded out and i'm unable to mark this option. The same happens for the .exe file. On the Security tab, i have the "Total Control" marked for all user's group.

I'm running windows 7 ultimate, 32bits, and logged as Administrator privilege.

My System SpecsSystem Spec
.

06 Oct 2011   #2

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64 Ubuntu 12.04 LTS Tri-Boot
 
 

Hi,

The message you are reffering to sounds like a UAC prompt - a built in security feature of Windows that is generally not recommended to turn it off.

You can't remove UAC specifically for that program, but you can create an elevated shorcut that will bypass UAC. See this:

Elevated Program Shortcut without UAC Prompt - Create

Regards,
Golden
My System SpecsSystem Spec
06 Oct 2011   #3

Windows 7 32bit
 
 

that's a nice approach... but i don't see a way to setup the product into the batch file to run under administrative authority....

any other suggestion ?
My System SpecsSystem Spec
.


06 Oct 2011   #4
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Knob, and welcome to Seven Forums.

Could you have the .bat file run the elevated shortcut created in that tutorial instead of the .exe file since the elevated shortcut will run the .exe file as administrator without a UAC prompt?
My System SpecsSystem Spec
Reply

 execute a .bat and .exe file as administrator once for all




Thread Tools




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 01:55 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33