Kozukata_Aoi

JaBatch V 2.0.1(UPDATED)

Sep 6th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.07 KB | None | 0 0
  1. @echo off
  2. title Java Batch Compiler V 2.0.1
  3. echo.
  4. :mainmenu
  5. title  Java Batch Compiler V 2.0.1
  6. cls
  7. echo  Java Batch Compiler V 2.0.1 by Hacker290
  8. echo.
  9. echo "STRICTLY PROHIBITED FOR SALE!!"
  10. echo.
  11. echo * Important Note:"This is a free script, you can share and modify the same
  12. echo as long you dont forget to mention the author of the same."
  13. echo.
  14. color 17
  15. echo.
  16. echo ################################################
  17. echo #  Options:
  18. echo #
  19. echo #  - Compile a .java file (Write compile)
  20. echo #
  21. echo #  - Run Java file (Write run)
  22. echo #
  23. echo #  - About (Write info)
  24. echo #
  25. echo # - Exit (write exprogram)
  26. echo #
  27. echo #
  28. echo ################################################
  29. set/p option=">>"
  30. if %option%==compile goto :compilefile
  31. if %option%==run goto :runfile
  32. if %option%==info goto :info
  33. if %option%==exprogram goto :closeprogram
  34.  
  35. :compilefile
  36. title Java Batch Compiler V 2.0.1
  37. cls
  38. echo.
  39. echo Java Batch Compiler V 2.0.1
  40. color 18
  41. echo.
  42. set /p filename=Write File name:
  43. goto :action
  44.  
  45. :action
  46. if exist %filename% echo Compiling Project...
  47. else goto :error
  48. goto :compile
  49. echo.
  50.  
  51. :error
  52. echo File Not Found...
  53. set /p re_t = return main menu? press 0:
  54. if %re_t% == 0 goto :mainmenu
  55.  
  56. :compile
  57. if exist *%filename%.class goto :existfile
  58. javac *%filename%.java
  59. goto :complete
  60.  
  61.  
  62. :existfile
  63. title Java Batch Compiler V 2.0.1
  64. cls
  65. echo.
  66. echo ###########################################
  67. echo.
  68. echo    File already exist.
  69. echo.
  70. echo ###########################################
  71. echo.
  72. set /p re_t = return main menu? press 0:
  73. if %re_t% == 0 goto :mainmenu
  74.  
  75. :complete
  76. title Java Batch Compiler V 2.0.1
  77. echo ###########################################
  78. echo.
  79. echo    The File Was Created Successfully.
  80. echo.
  81. echo ###########################################
  82. set /p retrn=Return to main menu? press 0:
  83. if %retrn%==0 goto :mainmenu
  84.  
  85. :closeprogram
  86. exit
  87.  
  88. :info
  89. title Java Batch Compiler(JaBatch) V 2.0.1
  90. cls
  91. echo  Disclamier
  92. echo.
  93. echo #####################################
  94. echo.
  95.  
  96. echo Java Batch Compiler V 2.0.1 by Hacker290
  97. echo.
  98. echo "STRICTLY PROHIBITED FOR SALE!!"
  99. echo.
  100. echo Important:* This is a free script, you can share and modify the same
  101. echo as long you dont forget to mention the author of the same. *
  102. echo.
  103. echo  Commands:
  104. echo - comp: Start the compiling menu.
  105. echo.
  106. echo - rnfile: Start the run menu.
  107. echo.
  108. echo - inf: Show this menu.
  109. echo.
  110. echo - exp: Close the script.
  111. echo.
  112. echo  In Menu:
  113. echo -0:Go back to the main screen.
  114. echo.
  115. echo #####################################
  116. echo.
  117. set /p retmenu=Return to main menu? (press 0):
  118. if %retmenu%==0 goto :mainmenu
  119.  
  120.  
  121. :runfile
  122. cls
  123. title Jrunner V 2.0.1
  124. color 12
  125. echo  Jrunner V 2.0.1
  126. echo.
  127. echo.
  128. set /p file2run=Write File to run:
  129. echo.
  130. if exist *.class goto :run
  131. else goto :error
  132.  
  133. :run
  134. cls
  135. title Jrunner V 2.0.1
  136. echo Running Program...
  137. echo.
  138. echo ======================================
  139. echo.
  140. java %file2run%
  141. echo.
  142. echo ======================================
  143. echo.
  144. set /p retrn=Return to main menu?(use command 0):
  145. echo.
  146. if %retrn%==0 goto :mainmenu
  147. pause>nul
Advertisement
Add Comment
Please, Sign In to add comment