Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off & setlocal enableextensions
- :: inf = Normal harddrive
- :: outf = RAMDisk path
- set inf="g:\PoE"
- set outf="z:\PoE"
- :: Check if specified ramdisk folder exists
- :: if specified ramdisk folder doesn't exist, create it
- if exist "%outf%\" goto launch
- echo -------------------------------------------------------------------------
- echo Path of Exile not ready for RAMDisk execution, "%outf%" not found
- echo Need to copy Path of Exile from %inf% to your RAMDisk in "%outf%"
- echo -------------------------------------------------------------------------
- md "%outf%"
- echo Starting to copy files to RAMDisk
- echo ******* THIS MIGHT TAKE A WHILE *******
- copy "%inf%\" "%outf%\"
- echo All files copied
- :launch
- echo ------------------------ LAUNCHING PATH OF EXILE ---------------------------
- Pushd %outf%
- Client.exe
- echo ------------------------ GAME CLOSED, FINALIZING -------------------------------------
- SET /P ANSWER=Do you want to copy files back to the original path? ( PoE was patched etc. ) (Y/N)?
- if /i {%ANSWER%}=={y} (goto :yes)
- if /i {%ANSWER%}=={yes} (goto :yes)
- goto :no
- :yes
- echo ----------------------------------------- Copying Path of Exile back to original location ----------------------------
- echo ***************** THIS MIGHT TAKE A WHILE *****************
- if not exist "%inf%\" (
- md "%inf%"
- )
- copy "%outf%\" "%inf%\"
- exit /b 0
- :no
- exit /b 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement