Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set memory=8192
- set java=C:\Program Files\Java\jre7\bin
- setlocal enabledelayedexpansion
- title Minecraft launcher (by self_slaughter)
- :detection
- cd /d %~dp0
- set /a count=0
- for /d %%g in (*) do (
- set /a count+=1
- set var!count!=%%g
- )
- set /a linecount=(%count% + 7)
- mode con: cols=52 lines=%linecount%
- :menu
- @echo off
- cls
- echo.
- echo Automagic Minecraft version selector
- echo ------------------------------------
- echo.
- for /l %%a in (1,1,%count%) do (
- echo %%a - !var%%a!
- )
- echo.
- set /p choice=Enter a number between 1-%count% and press enter:
- :errordetect
- echo %choice%|findstr /r /c:"^[0-9][0-9]*$" >nul
- if errorlevel 1 goto :menu
- if %choice% geq 1 if %choice% leq %count% goto :minecraft
- goto :menu
- :minecraft
- set appdata=%~dp0\!var%choice%!
- start "" "%java%\javaw.exe" -Xincgc -Xmx%memory%M -cp minecraft.jar net.minecraft.LauncherFrame
Advertisement
Add Comment
Please, Sign In to add comment