Juzzz
Gebruiker
- Lid geworden
- 15 jan 2008
- Berichten
- 281
Ik heb een kleine code (ff met een stop voorbeeld
)
als ik yes of no type werkt het perfect
ook als ik iets anders in type.
MAAR zodra ik 2 woorden in type dan sluit hij af.....?

Code:
@ECHO OFF
CLS
ECHO.
ECHO --------------------------------------------------
ECHO.
ECHO Chat sesion with Computer has started
ECHO.
ECHO --------------------------------------------------
ECHO.
ping localhost /3 >nul
Echo Computer says: Do you want a cookie?
ECHO.
SET /P text=%username% says:
ECHO.
IF %text%==yes (
goto YES
) ELSE (
IF %text%==no (
goto NO
) ELSE (
GOTO NEXT
)
)
:YES
ping localhost /n 3 >nul
Echo Computer says: OK, here you are!
ECHO.
GOTO NEXT
:NO
ping localhost /n 3 >nul
Echo Computer says: Ok, then i eat it myself!
ECHO.
GOTO NEXT
:NEXT
ping localhost /n 3 >nul
Echo Computer says: Not a yes or no?
ECHO.
SET /P text=%username% says:
echo.
ping localhost /n 3 >nul
Echo Computer says: how are you?
pause
als ik yes of no type werkt het perfect
ook als ik iets anders in type.
MAAR zodra ik 2 woorden in type dan sluit hij af.....?
Laatst bewerkt: