|Hi, I am trying to make a simple batch file but I am frustrated about the problem below.|
Just in case, I have only begun to make batch files so please do not post rude answers.
set /p command="What do you want to do? "
if %command%=="HEY" goto :echo
if %command%=="PAUSE" goto :com
echo.You chose to echo "HEY"
echo.You chose to pause.
Now I was able to adapt an example from the internet.
But I face a problem when I have multiple "if" statements, for instance:
If i chose "HEY", it works fine as it echoes hey.
But when I choose PAUSE, it echoes hey again.
Please help me fix this problem.
Thanks in advance,