|
Answer» Attempting to write my first bat script. (knockknock)
When ran, I either GET the "SORRY message" below, if I intentionaly give the wrong responce, Or when I give the CORRECT responce, I get an ERROR "is was unexpected at this time." at the top of the window.
OS - XP SP2
Is this a system issue, I don't think there is anything wrong with the script itself. - I say that becasue when I run the same script off the CD I get the same result.
*********************** set /p reply="Knock Knock! C:>" cls if not %reply% =="Who is there?" (echo "Sorry, but you are not playing the game right!" GOTO :EOF) Echo. **********************your "if" statement braces should be on different lines Code: [Select]@echo off set /p reply="Knock Knock! C:>" cls if not %reply% =="Who is there?" ( echo "Sorry, but you are not playing the game right!" GOTO :EOF ) Echo.
|