Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- dir /b | findstr /i "Forge-.*-.*-universal.jar" > temp.txt
- set /p foo=<temp.txt
- del temp.txt
- setlocal EnableDelayedExpansion
- set bar=<system.properties
- for /f "Tokens=* Delims=" %%x in (system.properties) do set bar=!bar! %%x
- endlocal
- 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
- cmd /k "title %foo% & java -jar %foo%%bar% nogui"
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement