Advertisement
ibi

redirect steam/gog/origin/uplay webcaches

ibi
Jan 27th, 2016
1,797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.41 KB | None | 0 0
  1. @echo off
  2. setlocal
  3. rem --- check for ramdisk
  4. if exist v:\ (echo checking: ramdisk [OK] && set trgt=v:\caches) else (echo checking: ramdisk [not found] && set trgt=c:\temp\caches)
  5. rd /s/q %trgt%
  6. echo redirecting game-client caches to %trgt%
  7. rem --- steam
  8. if exist c:\local\steam\steam.exe (echo checking: steam [OK] && md %trgt%\steam && mklink /j "%localappdata%\Steam\htmlcache" %trgt%\steam && mklink /j c:\local\steam\appcache\httpcache %trgt%\steam ) else (echo checking: steam [not found])
  9. rem --- origin
  10. if exist c:\local\origin\origin.exe (echo checking: origin [OK] && md %trgt%\origin && mklink /j "%localappdata%\Origin\Origin" %trgt%\origin ) else (echo checking: origin [not found])
  11. rem --- uplay
  12. if exist "c:\local\Ubisoft\Ubisoft Game Launcher\uplay.exe" (echo checking: uplay [OK] && md %trgt%\uplay && mklink /j "C:\local\Ubisoft\Ubisoft Game Launcher\cache\http2" %trgt%\uplay ) else (echo checking: uplay [not found])
  13. rem --- gog
  14. if exist c:\local\gog\GalaxyClient\GalaxyClient.exe (echo checking: gog [OK] && md %trgt%\gog && mklink /j "%allusersprofile%\GOG.com\Galaxy\webcache\common" %trgt%\gog) else (echo checking: gog [not found])
  15. rem --- epic
  16. if exist c:\local\Epic\Launcher\Engine\Binaries\Win32\EpicGamesLauncher.exe (echo checking: epic [OK] && md %trgt%\epic && mklink /j "%localappdata%\EpicGamesLauncher\Saved\webcache" %trgt%\epic ) else (echo checking: epic [not found])
  17. timeout 5
  18. endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement