New
#1
Help: CMD BatFile Question
Hey I have a Question with Windows bat file...
Is there a way to set a if statement for a system error 5
Ex.
Echo off
Title Test
cd/Users
cls
net user /add Frog 123456 (Giving System Error 5 if not ran as admin)
if system error 5 goto error
echo account made
pause
:error
echo ERROR Not Admin
pause
____________________________________________________________________
I typed that quick so their might be bugs... but if someone can help please do...
Thanks