Advertisement
CatRabbit499

Universal Forge Server Script

Aug 15th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. @echo off
  2. dir /b | findstr /i "Forge-.*-.*-universal.jar" > temp.txt
  3. set /p foo=<temp.txt
  4. del temp.txt
  5.  
  6. setlocal EnableDelayedExpansion
  7. set bar=<system.properties
  8. for /f "Tokens=* Delims=" %%x in (system.properties) do set bar=!bar! %%x
  9. endlocal
  10.  
  11. set PATH=c:\Program Files\Java\jdk1.8.0_181\bin;%PATH% REM Unnecessary if you haven't upgraded to java 9/10 as of 8/15/2018
  12. cmd /k "title %foo% & java -jar %foo%%bar% nogui"
  13. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement