self_slaughter

Untitled

Oct 18th, 2011
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. @echo off
  2.  
  3. set username=self_slaughter
  4. set password=***censored***
  5. set memory=8192
  6. set java=C:\Program Files\Java\jre7\bin
  7.  
  8. setlocal enabledelayedexpansion
  9. title self_slaughter rocks your jocks :P
  10.  
  11. :detection
  12.  
  13. cd /d %~dp0
  14. set /a count=0
  15.  
  16. for /d %%g in (*) do (
  17. set /a count+=1
  18. set var!count!=%%g
  19. )
  20.  
  21. set /a linecount=(%count% + 8)
  22. mode con: cols=52 lines=%linecount%
  23.  
  24. :menu
  25.  
  26. cls
  27. echo.
  28. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  29. echo º Automagic Minecraft version selector º
  30. echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  31. echo.
  32.  
  33. for /l %%a in (1,1,%count%) do (
  34. echo %%a - !var%%a!
  35. )
  36.  
  37. echo.
  38. set /p choice=Enter a number between 1-%count% and press enter:
  39.  
  40. :errordetect
  41.  
  42. echo %choice%|findstr /r /c:"^[0-9][0-9]*$" >nul
  43. if errorlevel 1 goto :menu
  44. if %choice% geq 1 if %choice% leq %count% goto :minecraft
  45. goto :menu
  46.  
  47. :minecraft
  48.  
  49. set appdata=%~dp0\!var%choice%!
  50. start "" "%java%\javaw.exe" -Xincgc -Xmx%memory%M -cp minecraft.jar net.minecraft.LauncherFrame %username% %password%
  51.  
  52.  
Advertisement
Add Comment
Please, Sign In to add comment