How to make a batch file for clearing cache?

labellavienna

Warlord
Joined
Mar 23, 2012
Messages
135
Hello I was wondering if someone could write up a simple set of batch commands to automatically clear out the cache before every game session? Much appreciated!
 
What does that entail? I can whip up a script for you (will be Powershell and not batch though, if you care).
 
Built in script host on Win7 and up..
 
I don't know what 'this' is! What do you do manually...
 
I like batch...and have never heard of power shell...but if it requires a script maybe you can just write up hte script and i will figure out the rest =]
 
hmm, you just want to delete the .db files from the my games\civ\cache folder?

open up notepad
paste this line:
del "%homepath%\Documents\My Games\Sid Meier's Civilization 5\cache\*.db"
go to file, save as
change the type to all documents,
type deleteCivCache.bat as the name (the .bat) being the important part

double clicking that will delete all those files
 
sorry for asking this noob question but what will this script do? and what effect will it cause?
 
The cache files are created so that Civilization can load faster, without having to call variables and other data (assumed to be the same as before). If you're having troubles loading the game, Civ crashes arbitrarily, or you see visual artifacts, the cache files may be related.

I'm just taking my chances, but clearing Civ5ModsDatabase.db may resolve mod issues. Vexing's script above will clear them all.
 
Back
Top Bottom