Introduction: Simple Batch File "Me" Quiz

For some people, there might be a little bug.

  1. Open notepad
  2. Copy and paste code below
  3. Save it as me.bat and click Text Documents and change it to All Files

@echo off
cls

:loop

mode 1000

echo Hello. What is your name? (no complete sentences)

set /p name= cls echo Hello %name%! What is your favorite hobby?

set /p hobby= cls echo Nice. I don't have a hobby because I am just a computer. How old are you?

set /p age=

:g

cls

echo Do you have any experiences with programming?

set /p pro=

if %pro%==yes (

goto really

)else if %pro%==no (

goto okay

)else (

goto g

)

:really

cls

echo Really? What languages do/did you use?

set /p lang=

echo Okay. pause goto next

:okay

cls

echo That's okay.

pause

goto next

:next

cls

echo Bye %name%.

pause

echo Made by CodeSmartz

echo.

echo Do you want to restart?

set /p restart=

if %restart%==yes (

goto loop

)else if %restart%==no (

exit

)else goto next