Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Java Batch Compiler V 2.0.1
- echo.
- :mainmenu
- title Java Batch Compiler V 2.0.1
- cls
- echo Java Batch Compiler V 2.0.1 by Hacker290
- echo.
- echo "STRICTLY PROHIBITED FOR SALE!!"
- echo.
- echo * Important Note:"This is a free script, you can share and modify the same
- echo as long you dont forget to mention the author of the same."
- echo.
- color 17
- echo.
- echo ################################################
- echo # Options:
- echo #
- echo # - Compile a .java file (Write compile)
- echo #
- echo # - Run Java file (Write run)
- echo #
- echo # - About (Write info)
- echo #
- echo # - Exit (write exprogram)
- echo #
- echo #
- echo ################################################
- set/p option=">>"
- if %option%==compile goto :compilefile
- if %option%==run goto :runfile
- if %option%==info goto :info
- if %option%==exprogram goto :closeprogram
- :compilefile
- title Java Batch Compiler V 2.0.1
- cls
- echo.
- echo Java Batch Compiler V 2.0.1
- color 18
- echo.
- set /p filename=Write File name:
- goto :action
- :action
- if exist %filename% echo Compiling Project...
- else goto :error
- goto :compile
- echo.
- :error
- echo File Not Found...
- set /p re_t = return main menu? press 0:
- if %re_t% == 0 goto :mainmenu
- :compile
- if exist *%filename%.class goto :existfile
- javac *%filename%.java
- goto :complete
- :existfile
- title Java Batch Compiler V 2.0.1
- cls
- echo.
- echo ###########################################
- echo.
- echo File already exist.
- echo.
- echo ###########################################
- echo.
- set /p re_t = return main menu? press 0:
- if %re_t% == 0 goto :mainmenu
- :complete
- title Java Batch Compiler V 2.0.1
- echo ###########################################
- echo.
- echo The File Was Created Successfully.
- echo.
- echo ###########################################
- set /p retrn=Return to main menu? press 0:
- if %retrn%==0 goto :mainmenu
- :closeprogram
- exit
- :info
- title Java Batch Compiler(JaBatch) V 2.0.1
- cls
- echo Disclamier
- echo.
- echo #####################################
- echo.
- echo Java Batch Compiler V 2.0.1 by Hacker290
- echo.
- echo "STRICTLY PROHIBITED FOR SALE!!"
- echo.
- echo Important:* This is a free script, you can share and modify the same
- echo as long you dont forget to mention the author of the same. *
- echo.
- echo Commands:
- echo - comp: Start the compiling menu.
- echo.
- echo - rnfile: Start the run menu.
- echo.
- echo - inf: Show this menu.
- echo.
- echo - exp: Close the script.
- echo.
- echo In Menu:
- echo -0:Go back to the main screen.
- echo.
- echo #####################################
- echo.
- set /p retmenu=Return to main menu? (press 0):
- if %retmenu%==0 goto :mainmenu
- :runfile
- cls
- title Jrunner V 2.0.1
- color 12
- echo Jrunner V 2.0.1
- echo.
- echo.
- set /p file2run=Write File to run:
- echo.
- if exist *.class goto :run
- else goto :error
- :run
- cls
- title Jrunner V 2.0.1
- echo Running Program...
- echo.
- echo ======================================
- echo.
- java %file2run%
- echo.
- echo ======================================
- echo.
- set /p retrn=Return to main menu?(use command 0):
- echo.
- if %retrn%==0 goto :mainmenu
- pause>nul
Advertisement
Add Comment
Please, Sign In to add comment