Jump to content

How do I find out if I'm running as admin?


Go to solution Solved by Werty,

Recommended Posts

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

@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 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...