Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :newfile1
- cls
- echo.
- set /p fn=File Name:
- cls
- echo.
- echo Please choose a file extension
- echo 1. .txt
- echo 2. .bat
- echo 3. .js
- echo 4. .vbs
- echo 5. .cmd
- echo 6. .doc
- echo 7. .html
- echo 8. .sh
- echo 9. Custom
- set /p fe=
- if %fe%==1 goto newfile.txt
- if %fe%==2 goto newfile.bat
- if %fe%==3 goto newfile.js
- if %fe%==4 goto newfile.vbs
- if %fe%==5 goto newfile.cmd
- if %fe%==6 goto newfile.doc
- if %fe%==7 goto newfile.html
- if %fe%==8 goto newfile.sh
- if %fe%==9 goto customfe
- :newfile.txt
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%.txt goto error7
- echo %th% >> %fn%.txt
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
- :error7
- cls
- echo.
- echo %fn% could not be created
- echo.
- echo Press any key to go back. . .
- pause >nul
- goto tools2
- :newfile.bat
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%.bat goto error7
- echo %th% >> %fn%.bat
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
- :newfile.js
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%.js goto error7
- echo %th% >> %fn%.js
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
- :newfile.vbs
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%.vbs goto error7
- echo %th% >> %fn%.vbs
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
- :newfile.cmd
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%.cmd goto error7
- echo %th% >> %fn%.cmd
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
- :newfile.doc
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%.doc goto error7
- echo %th% >> %fn%.doc
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
- :newfile.html
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%.html goto error7
- echo %th% >> %fn%.html
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
- :newfile.sh
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%.sh goto error7
- echo %th% >> %fn%.sh
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
- :customfe
- cls
- echo.
- echo Please enter a file extension for your file (include the (.))
- set /p fe=
- cls
- echo TEXT HERE:
- set /p th=
- if exist %fn%%fe% goto error7
- echo %th% >> %fn%%fe%
- cls
- echo.
- echo File Created.
- timeout 2 >nul
- goto tools2
Add Comment
Please, Sign In to add comment