Edifice Posted February 3, 2009 Posted February 3, 2009 Okay, so I need #requireadmin to use run("something inside of C:\Windows") on windows vista, but do I need a special flag on the run("") command to run it as an administrator?
Catdaddy Posted February 3, 2009 Posted February 3, 2009 I might be misinterpreting but I believe #requireadmin ensures that the script will ONLY run if the person who executes it has admin privileges. If there is a chance that your user does not have admin privileges you could use RunAs().
Edifice Posted February 3, 2009 Author Posted February 3, 2009 yes, and it also activates UAC in vista - which is essentially nessecery for me because I am moving stuff around in @Windowsdir, but my question is: Do I need to flag my Run("") in some special way to activate admin rights for that particular run or do my little .exe have to admin rights already because of the #requireadmin at the top of the code? Just wondering
Catdaddy Posted February 3, 2009 Posted February 3, 2009 Ah, I see. Sorry. Unfortunatly, it's been a while since I've messed with UAC as it was the first thing I turned off when I installed Vista.
Edifice Posted February 3, 2009 Author Posted February 3, 2009 I hear you. Unfortunatly, I am currently creating a program to fix the most common bugs in windows update, and I do not have that option, as the thought is the program should be able to run on as many computers as possible.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now