im not sure why you would need to do this. the repair tool is capable of clearing the shader cache as per its settings. and you generally only need to do that if you upgrade drivers, change gpu, or if your cached shaders go corrupt. these are rare events and do not need to be done every time.
also you dont need to have the user edit the code, just use windows environment path variables:
SET gamepath=%ProgramFiles(x86)%\Piranha Games\MWO Portal
SET shaderpath=%UserProfile%\Saved Games\MechWarrior Online\Shaders
that wont work for the oddballs who have their game installed in weird locations, but will catch 99% of users who install by the default settings. oddballs will need a whole new path anyway. im not sure about steam users, i think steam has its own location. worst case scenario you would just have to manually change gamepath to the appropriate location. changing one line instead of 3 is a lot easier for people without a programming background.
you can also use cd with the /d switch, so it will change the drive and path at the same time. so instead of
c:
cd %gamepath%
use
cd /d %gamepath%
Edited by LordNothing, 30 June 2022 - 02:57 PM.