Advertisement
Guest User

PoERAMLauncher

a guest
Mar 13th, 2013
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. @echo off & setlocal enableextensions
  2.  
  3. :: inf = Normal harddrive
  4. :: outf = RAMDisk path
  5. set inf="g:\PoE"
  6. set outf="z:\PoE"
  7.  
  8. :: Check if specified ramdisk folder exists
  9. :: if specified ramdisk folder doesn't exist, create it
  10. if exist "%outf%\" goto launch
  11. echo -------------------------------------------------------------------------
  12. echo Path of Exile not ready for RAMDisk execution, "%outf%" not found
  13. echo Need to copy Path of Exile from %inf% to your RAMDisk in "%outf%"
  14. echo -------------------------------------------------------------------------
  15. md "%outf%"
  16.  
  17. echo Starting to copy files to RAMDisk
  18. echo ******* THIS MIGHT TAKE A WHILE *******
  19. copy "%inf%\" "%outf%\"
  20. echo All files copied
  21.  
  22. :launch
  23.  
  24. echo ------------------------ LAUNCHING PATH OF EXILE ---------------------------
  25. Pushd %outf%
  26. Client.exe
  27. echo ------------------------ GAME CLOSED, FINALIZING -------------------------------------
  28.  
  29. SET /P ANSWER=Do you want to copy files back to the original path? ( PoE was patched etc. ) (Y/N)?
  30. if /i {%ANSWER%}=={y} (goto :yes)
  31. if /i {%ANSWER%}=={yes} (goto :yes)
  32. goto :no
  33. :yes
  34. echo ----------------------------------------- Copying Path of Exile back to original location ----------------------------
  35. echo ***************** THIS MIGHT TAKE A WHILE *****************
  36. if not exist "%inf%\" (
  37. md "%inf%"
  38. )
  39. copy "%outf%\" "%inf%\"
  40. exit /b 0
  41.  
  42. :no
  43. exit /b 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement