Old ® Games4theworld Forum / Archive
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Automatic Sims 3 cache file deletion

View previous topic View next topic Go down

Automatic Sims 3 cache file deletion Empty Automatic Sims 3 cache file deletion

Post by Guest Sat 10 Nov 2012, 18:00

I thought it was a bit annoying to have to remember to delete the cache files once in a while to speed up the game, so I figured out how to do it automatically with Windows forfiles command.

This works on Windows Vista and 7 by default. XP doesn't have forfiles so you need to download it somewhere first, and put the forfiles.exe file in Windows/system32.

Code:
forfiles /p "C:\Users\Username\Documents\Electronic Arts\The Sims 3" /m *.package /d -3 /c "cmd /c del /q @path"
forfiles /p "C:\Users\Username\Documents\Electronic Arts\The Sims 3\WorldCaches" /m *.package /d -3 /c "cmd /c del /q @path"
start /d "E:\Games\The Sims 3\Game\Bin" TS3W.exe
You need to paste this text to notepad, edit it, then save it as a bat file. Explained below:

The first 2 lines delete package files older than 3 days from The Sims 3 and WorldCaches folders. If they aren't that old, nothing happens.
Change the numbers to whatever you think is appropriate, since I don't really know how long it takes for the game to start noticeably slowing down due to big cache files. Depends on how much you play.

Also change the username to whatever yours is.
I'm not sure if the Electronic Art folders directory path is the same for XP. If not, just change it, but remember to keep the double quotes " " around the path.

The 3rd line just launches the game. Change the path to whatever yours is.

After you've edited the text with notepad save it as a batch file, just type .bat at the end of the filename instead of txt.
Then put the bat file somewhere else than on the desktop, and make a shortcut to it on the desktop. That way you can freely change the name and put a Sims 3 icon on it.

Then whenever you start the game from this shortcut, it checks for old cache files before launching.

Hammertime :newfag:

Guest
Guest


Back to top Go down

Automatic Sims 3 cache file deletion Empty Re: Automatic Sims 3 cache file deletion

Post by t2sink Sun 11 Nov 2012, 03:19

With deleting files, would probably want to write is so you only delete files that are described rather then all that match the .package format. Not really much more to write, just figure out what you are deleting, and copy+paste the link a couple of times.
t2sink
t2sink
G4TW RETIRED Helper / VIP
Discharged with Honors
G4TW RETIRED Helper / VIP Discharged with Honors

Windows version :
  • Windows 7

System architecture :
  • 32 bits (x86)

Favourite games : Sims 3, Roller Coaster Tycoon 2, Minecraft, RPG World Online, AoE 2/3, Command And Conquer, SimCity, Star Wars: Galactic Battlegrounds, MW2/MW3, Halo Reach, Borderlands, Halo 4

Male

Posts : 1078
Points : 5515
Join date : 2012-09-10
Location : Michigan

Back to top Go down

Automatic Sims 3 cache file deletion Empty Re: Automatic Sims 3 cache file deletion

Post by Guest Sun 11 Nov 2012, 09:39

Those folders only have package files that can safely be deleted.

Not sure if there's any reason why anyone would have some different more important package files in there? Aren't they all put in the mods folder?

Thanks for mentioning that.

Guest
Guest


Back to top Go down

Automatic Sims 3 cache file deletion Empty Re: Automatic Sims 3 cache file deletion

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum