SHsuperCM

Jar2Cmd.bat

Feb 21st, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.38 KB | None | 0 0
  1. @ECHO OFF
  2. if exist "*.jar" (
  3.     echo Jar2Cmd-ing:
  4.     for /R "." %%f in (*.jar) do (
  5.         echo   %%f -^>
  6.         echo      %%~nf.j
  7.         echo      %%~nf.bat
  8.  
  9.         (
  10.             echo @ECHO OFF
  11.             echo java -jar %cd%\%%~n0.j %%*
  12.         )>"%%~nf.bat"
  13.         ren "%%f" "%%~nf.j"
  14.     )
  15. ) else (
  16.     echo There are no jar files in the current directory.
  17. )
  18. echo Closing in 5 seconds(press any key to close now)
  19. timeout 5 >nul
Add Comment
Please, Sign In to add comment