Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

execute .bat as administrator

Status
Not open for further replies.

2009luca

Programmer
Jul 27, 2013
222
0
16
IT
I use this code to run a .bat:

Code:

to the and of code appear a window with yes or no, and to have effect "as admin" i need to click on Yes....

Possible to use other way to execute bat without any window prompt?
 
What did you see in the [tt]CODE[/tt] portion of your post when you clicked [red]Preview[/red] before you clicked Submit Post [ponder]


---- Andy

There is a great need for a sarcasm font.
 
>without any window prompt?

So you want to avoid UAC? If so, you need to look at the CreateProcessWithLogonW API call
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top