Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Java Batch Compiler V 1.0
- color 02
- echo.
- echo "Java Batch Compiler V 1.0"
- echo.
- :mainmenu
- set /p filename="Write Filename:"
- goto :search
- if exist (echo "File Found" goto :action) else (goto :error)
- :search
- echo.
- echo Searching file...
- echo.
- :action
- if exist %filename% echo Compiling Project...
- goto :JAVACOMPILE
- :JAVACOMPILE
- javac *.java
- goto :complete
- :complete
- echo.
- echo the file was created successfully
- echo.
- echo Press a key to exit...
- pause>nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement