@echo off setlocal rem --- check for ramdisk if exist v:\ (echo checking: ramdisk [OK] && set trgt=v:\caches) else (echo checking: ramdisk [not found] && set trgt=c:\temp\caches) rd /s/q %trgt% echo redirecting game-client caches to %trgt% rem --- steam 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]) rem --- origin 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]) rem --- uplay 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]) rem --- gog 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]) rem --- epic 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]) timeout 5 endlocal