BatchHacker

Simple Batch - Easy Script to load a text to a variable

Jul 20th, 2013
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. title Config
  3. if exist Name.txt goto loadNametxt
  4. :cls
  5. cls
  6. echo What is your name?
  7. echo.
  8. set /p c=Name:
  9. if "%c%"=="" goto cls
  10. echo %c%>Name.txt
  11. :loadNametxt
  12. SET /p name=<Name.txt
  13. cls
  14. echo Your name is %name%!
  15. echo.
  16. pause>>nul
  17. exit
Advertisement
Add Comment
Please, Sign In to add comment