batch file - Goto was unexpected at this time please -
im messing around secret file can type in , keep things myself here code
@echo off echo please enter password continue set /p password="hello" if %c%==hello goto top if not %c%==goto passerror :passsuccess title matrix color 0a mode 1000 :top echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random% goto top :passerror echo try again
your problem c
undefined. entering password password
checking c
.
in case of spaces or no entry, use
if "%varentered%"=="somevalue" goto ...
for instance,
if "%c%"=="" goto paserror
or
if not defined c goto ...
as have it, if %c%
not equal goto
, execute executable passerror
Comments
Post a Comment