Jump to content
Sign in to follow this  
Th3Gam3

Run bat as Admin

Recommended Posts

Th3Gam3

Hi guys,

I need to run a .bat file as Administrator how can i do that ? (Maybe with a extensions of the "run" command?

run(asadmin)(mc.bat)
<--- only a example)

Without admin rights it wont work ...

Kind Regards Th3Gam3

Edited by Th3Gam3

Share this post


Link to post
Share on other sites
KaFu

Did you check the help-file for the RunAs() function? On Vista+ to elevated a script maybe you try the ShellExecute() function with the verb "runas".

Share this post


Link to post
Share on other sites
Th3Gam3

thanks :) works fine

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×