Reputation: 69
I was making my own little batch file.
It will say Bad Command then goto the typing prompt again but everything I type the wrong command (if) I made cmd my batch shuts off
Code:
:ccc
set /p cmd=C:\
if %cmd%==edit goto edit
if %cmd%==Edit goto edit
if %cmd%==exit goto exit
if %cmd%==Exit goto exit
if %cmd%==Restart goto restart
if %cnd%==restart goto restart
echo Bad Command
goto ccc
Upvotes: 2
Views: 559