Sign in to follow this  
Followers 0
Th3Gam3

Run bat as Admin

3 posts in this topic

#1 ·  Posted (edited)

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



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

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  
Followers 0