defect122

Batch user Input

Sep 7th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Batch Windows
  2.  
  3. @echo off
  4. :J1
  5. echo Type ok to start a program!
  6. set /p var1="Input:"
  7. if %var1%==ok ( goto J2 ) else ( goto J1 )
  8. :J2
  9. echo Well done! That was just a test!
  10. pause>nul
  11. exit
Advertisement
Add Comment
Please, Sign In to add comment