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

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -