@EcHo off net user %username% >> temp.txt find /c "*Administrators" temp.txt > NUL echo ---------------------- if %errorlevel% equ 1 goto notadmin echo You are an administrator! goto end :notadmin echo You are not an administrator! :end echo ---------------------- del temp.txt pause
Strange, I think something messed up with your environment variables. Open up Command Prompt and type this in:set path=C:\Windows\system32;%path%
