Advertisement
xzlui

Make a Notepad in Batch (Write Text Files)

May 29th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.36 KB | None | 0 0
  1. @echo off
  2. title Batch Notepad
  3. color 0a
  4. set num=%random%
  5. mode 110,38
  6.  
  7. REM simple method for creating text files in batch by xzlui
  8.  
  9. :write
  10. set /p line=$
  11. if "%line:~0,1%" == "{" set Counter=1
  12. if "%line%" == "/done" set line=END && exit
  13. echo %line%>>%cd%\doc_%num%.txt
  14. ::in "set line=-" replace "-" with "::" and you can code batch files
  15. set line=-
  16. goto write
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement