Page 1 of 1

Batch command to check for "Run as Admin"?

Posted: Thu Mar 18, 2010 2:45 pm
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

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

Posted: Thu Mar 18, 2010 4:05 pm
by 501st_commander

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

Posted: Thu Mar 18, 2010 4:58 pm
by spaceyavin
Uh. Thanks. Lol.