Draygoes Posted March 22, 2022 Share Posted March 22, 2022 I need an easy way to test if a script has admin privileges. I could have sworn that I had seen a way to do this, but I can't remember. A cursory search of the forum didn't give me anything either. Thanks for your time. Spoiler "If a vegetarian eats vegetables,What the heck does a humanitarian eat?" "I hear voices in my head, but I ignore them and continue on killing." "You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring." An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist. Link to comment Share on other sites More sharing options...
Solution Werty Posted March 22, 2022 Solution Share Posted March 22, 2022 (edited) IsAdmin() ? Edited March 22, 2022 by Werty Draygoes 1 Some guy's script + some other guy's script = my script! Link to comment Share on other sites More sharing options...
Draygoes Posted March 22, 2022 Author Share Posted March 22, 2022 (edited) @Werty Awesome! Thank you! I just knew there was an easy solution that I had seen before but I couldn't figure out what it was to save my life. And one more thing while you're here. When I fire this code off, nothing happens. I've debugged with message boxes. The paths are correct. Any idea? Run(@ScriptDir & "\VBoxFiles\Portable-VirtualBox.exe", @ScriptDir & "\VBoxFiles") Edited March 22, 2022 by Draygoes I meant to tag Werty. Spoiler "If a vegetarian eats vegetables,What the heck does a humanitarian eat?" "I hear voices in my head, but I ignore them and continue on killing." "You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring." An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist. Link to comment Share on other sites More sharing options...
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