Batch command to check for "Run as Admin"?

How To's, Questions, and Solutions for problems. This covers anything from computer hardware problems to software recommendations to tutorials for various software programs.

Note: Neither Gametoast nor any of its members/visitors are responsible for any damage to your computer as a result from advice given in this forum. Follow advice at your own risk and be sure to back up any important files.

Moderator: Moderators

Post Reply
User avatar
spaceyavin
Private
Posts: 35
Joined: Sat Dec 20, 2008 6:29 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Triple Zero
Contact:

Batch command to check for "Run as Admin"?

Post by spaceyavin »

Anyone got any ideas for this; a batch command to see if the .bat has been run as administrator? The program I'm making is a clean-up tool and I want to be sure it has been run with the correct privileges.

Thanks in advance,
Spaceyavin
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: Batch command to check for "Run as Admin"?

Post by 501st_commander »

User avatar
spaceyavin
Private
Posts: 35
Joined: Sat Dec 20, 2008 6:29 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Triple Zero
Contact:

Re: Batch command to check for "Run as Admin"?

Post by spaceyavin »

Uh. Thanks. Lol.
Post Reply