Advertisement
ArchiveGuy

Fate/Stay Night Realta Nua Selector Script

May 30th, 2015
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.40 KB | None | 0 0
  1. @echo off
  2. :: Timeout before last selection is used, in seconds
  3. set TIMEOUT=4
  4. :: Path to Fate executable (ASCII characters only)
  5. set FATEPATH="Fate stay night[Realta Nua] -Fate-\Fate stay night[Realta Nua] -Fate-.exe"
  6. :: Path to UBW executable (ASCII characters only)
  7. set UBWPATH="Fate stay night[Realta Nua] -Unlimited Blade Works-\Fate stay night[Realta Nua] -Unlimited Blade Works-.exe"
  8. :: Path to HF executable (ASCII characters only)
  9. set HFPATH="Fate stay night[Realta Nua] -Heaven's Feel-\Fate stay night[Realta Nua] -Heaven's Feel-.exe"
  10.  
  11. if exist lastchoice.txt set /p default=< lastchoice.txt
  12. echo. & echo Choose which title to launch.  After %TIMEOUT% seconds either the last used selection will be chosen, or Fate if this is the first time running this script.
  13. echo.
  14. echo 1) Fate
  15. echo 2) Unlimited Blade Works
  16. echo 3) Heaven's Feel
  17. echo.
  18. if "%default%" == "1" (
  19.     echo Previous Selection: Fate
  20. ) else (if "%default%" == "2" (
  21.     echo Previous Selection: Unlimited Blade Works
  22. ) else (if "%default%" == "3" (
  23.     echo Previous Selection: Heaven's Feel
  24. ) else (
  25.     set default=1
  26. )))
  27. choice /c 123 /n /t %TIMEOUT% /d %default% /m Selection:
  28. if %ERRORLEVEL% == 1 (
  29.     (echo %ERRORLEVEL%)> lastchoice.txt
  30.     start "" %FATEPATH%
  31. ) else (if %ERRORLEVEL% == 2 (
  32.     (echo %ERRORLEVEL%)> lastchoice.txt
  33.     start "" %UBWPATH%
  34. ) else (if %ERRORLEVEL% == 3 (
  35.     (echo %ERRORLEVEL%)> lastchoice.txt
  36.     start "" %HFPATH%
  37. )))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement