Guest User

Untitled

a guest
Jan 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.11 KB | None | 0 0
  1. :newfile1
  2. cls
  3. echo.
  4. set /p fn=File Name:
  5. cls
  6. echo.
  7. echo Please choose a file extension
  8. echo 1. .txt
  9. echo 2. .bat
  10. echo 3. .js
  11. echo 4. .vbs
  12. echo 5. .cmd
  13. echo 6. .doc
  14. echo 7. .html
  15. echo 8. .sh
  16. echo 9. Custom
  17. set /p fe=
  18. if %fe%==1 goto newfile.txt
  19. if %fe%==2 goto newfile.bat
  20. if %fe%==3 goto newfile.js
  21. if %fe%==4 goto newfile.vbs
  22. if %fe%==5 goto newfile.cmd
  23. if %fe%==6 goto newfile.doc
  24. if %fe%==7 goto newfile.html
  25. if %fe%==8 goto newfile.sh
  26. if %fe%==9 goto customfe
  27. :newfile.txt
  28. cls
  29. echo TEXT HERE:
  30. set /p th=
  31. if exist %fn%.txt goto error7
  32. echo %th% >> %fn%.txt
  33. cls
  34. echo.
  35. echo File Created.
  36. timeout 2 >nul
  37. goto tools2
  38. :error7
  39. cls
  40. echo.
  41. echo %fn% could not be created
  42. echo.
  43. echo Press any key to go back. . .
  44. pause >nul
  45. goto tools2
  46. :newfile.bat
  47. cls
  48. echo TEXT HERE:
  49. set /p th=
  50. if exist %fn%.bat goto error7
  51. echo %th% >> %fn%.bat
  52. cls
  53. echo.
  54. echo File Created.
  55. timeout 2 >nul
  56. goto tools2
  57. :newfile.js
  58. cls
  59. echo TEXT HERE:
  60. set /p th=
  61. if exist %fn%.js goto error7
  62. echo %th% >> %fn%.js
  63. cls
  64. echo.
  65. echo File Created.
  66. timeout 2 >nul
  67. goto tools2
  68. :newfile.vbs
  69. cls
  70. echo TEXT HERE:
  71. set /p th=
  72. if exist %fn%.vbs goto error7
  73. echo %th% >> %fn%.vbs
  74. cls
  75. echo.
  76. echo File Created.
  77. timeout 2 >nul
  78. goto tools2
  79. :newfile.cmd
  80. cls
  81. echo TEXT HERE:
  82. set /p th=
  83. if exist %fn%.cmd goto error7
  84. echo %th% >> %fn%.cmd
  85. cls
  86. echo.
  87. echo File Created.
  88. timeout 2 >nul
  89. goto tools2
  90. :newfile.doc
  91. cls
  92. echo TEXT HERE:
  93. set /p th=
  94. if exist %fn%.doc goto error7
  95. echo %th% >> %fn%.doc
  96. cls
  97. echo.
  98. echo File Created.
  99. timeout 2 >nul
  100. goto tools2
  101. :newfile.html
  102. cls
  103. echo TEXT HERE:
  104. set /p th=
  105. if exist %fn%.html goto error7
  106. echo %th% >> %fn%.html
  107. cls
  108. echo.
  109. echo File Created.
  110. timeout 2 >nul
  111. goto tools2
  112. :newfile.sh
  113. cls
  114. echo TEXT HERE:
  115. set /p th=
  116. if exist %fn%.sh goto error7
  117. echo %th% >> %fn%.sh
  118. cls
  119. echo.
  120. echo File Created.
  121. timeout 2 >nul
  122. goto tools2
  123. :customfe
  124. cls
  125. echo.
  126. echo Please enter a file extension for your file (include the (.))
  127. set /p fe=
  128. cls
  129. echo TEXT HERE:
  130. set /p th=
  131. if exist %fn%%fe% goto error7
  132. echo %th% >> %fn%%fe%
  133. cls
  134. echo.
  135. echo File Created.
  136. timeout 2 >nul
  137. goto tools2
Add Comment
Please, Sign In to add comment