Advertisement
ReActif

CleanModTemp.bat

Nov 21st, 2022
1,143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.16 KB | None | 0 0
  1. :: CLEANMODTEMP.BAT
  2. :: 2022.11.21
  3. :: ReActif
  4. ::
  5. :: This script delete all log files and log folder in CP2077
  6. :: And delete generated files in R6 folder
  7.  
  8. @echo off
  9. title RESET MOD FILES
  10. cls
  11.  
  12. :Variables
  13. :: SET YOUR GAME PATH WITHOUT THE LAST \
  14. set game_path=C:\Program Files (x86)\Steam\steamapps\common\Cyberpunk 2077
  15.  
  16. :CyberEngineTweaks
  17. del /q /s "%game_path%\bin\x64\plugins\*.log"
  18. del /q /s "%game_path%\bin\x64\plugins\cyber_engine_tweaks\*.sqlite3"
  19.  
  20. :R6
  21. if exist "%game_path%\r6\cache\final.redscripts.bk" (
  22.   del /q "%game_path%\r6\cache\final.redscripts"
  23.   ren "%game_path%\r6\cache\final.redscripts.bk" final.redscripts
  24. )
  25. if exist "%game_path%\r6\cache\redscript.ts" ( del /q "%game_path%\r6\cache\redscript.ts" )
  26. if exist "%game_path%\r6\cache\inputContexts.xml" ( del /q "%game_path%\r6\cache\inputContexts.xml" )
  27. if exist "%game_path%\r6\cache\inputUserMappings.xml" ( del /q "%game_path%\r6\cache\inputUserMappings.xml" )
  28. del /q /s "%game_path%\r6\cache\*.log"
  29. rmdir /q /s "%game_path%\r6\cache\modded"
  30. rmdir /q /s "%game_path%\r6\logs"
  31.  
  32. :Red4Ext
  33. rmdir /q /s "%game_path%\red4ext\logs"
  34. del /q /s "%game_path%\red4ext\plugins\*.log"
  35.  
  36. :End
  37. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement