Author Topic: Clean Sims.bat File - A Batch File to Help Delete Cache and Other Files  (Read 1612 times)

MrsFlynn

  • Forum Goddess
  • Administrator
  • Ultimate Townie
  • *****
  • Posts: 2902
  • Come to the dark side... We've got cookies 🍪🍪 ☕
  ~ Purpose:

To help delete game cache and other files in one go and should help with troubleshooting some crashing, custom content, mod and Launcher issues. Made for Windows only. Files will regenerate next time you open the game. The batch file is customizable to your needs, you just need to know how to add the links or paths to the file.

This is done with the Sims 3 folder in Documents. My Documents folder is located on the D drive, as shown in the example below.

Easiest way to make a Clean Sims.bat file is to start with an example and change the links to where your Sims 3 user folder is.
-- By default that is usually C:\Users\<Username>\Documents\Electronic Arts\The Sims 3

Copy/paste the code below into Notepad and save the file: SimsClean.bat

I saved the SimsClean.bat to the desktop, and double-click to run the bat. file and start the game.

Do note, the example is made for those who use the disc version of the game. You will need to replace it with your install link.
You can do this by right-clicking on your Sims 3 desktop link, go to Properties > Shortcut tab and looking for the Target section and copy that link.

I've added some reference links to help with more information about creating your own batch file for Sims 3. And a link to a Mod for Steam/Origin players.

Code: [Select]
@echo off
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\CASPartCache.package"
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\scriptCache.package"
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\compositorCache.package"
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\simCompositorCache.package"
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\socialCache.package"
del /q "D:\Users\Username\Documents\Electronic Arts\The Sims 3\FeaturedItems"
del /q "D:\Users\Username\Documents\Electronic Arts\The Sims 3\IGACache"
del /q "D:\Users\Username\Documents\Electronic Arts\The Sims 3\SigsCache"
del /q "D:\Users\Username\Documents\Electronic Arts\The Sims 3\Thumbnails"
del /q "D:\Users\Username\Documents\Electronic Arts\The Sims 3\WorldCaches"
del /q "D:\Users\Username\Documents\Electronic Arts\The Sims 3\DCCache\*.tmp"
attrib +r "D:\Users\Username\Documents\Electronic Arts\The Sims 3\DCBackup\ccmerged.package"
del /q "D:\Users\Username\Documents\Electronic Arts\The Sims 3\DCBackup\*.*"
attrib -r "D:\Users\Username\Documents\Electronic Arts\The Sims 3\DCBackup\ccmerged.package"
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\DeviceConfig.log"
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\socialCache.package"
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\tslus.bin"
del "D:\Users\Username\Documents\Electronic Arts\The Sims 3\Version.tag"
start /d "C:\Games\Electronic Arts\The Sims 3\Game\Bin\" TS3W.exe
pause
exit

 – Added Note: This is just an option to try.  I got curious about trying to create a batch file and how it would work for me, so I took notes as I tried this method of cleaning my Sims 3 folder and wanted to share.

If you've already got a system that works for you in cleaning your Sims 3 folder out, then go with your system!! This is for those who were like me and curious in how a batch file worked.  Once I got the file edited just right for my needs it worked perfectly.

I must admit, I ended up going back to my "system" = cleaning up the files manually, as it seems a lot quicker and easier for me. lol



  ~ Reference Links:

Clearing The Cache – How and Why? - Gives a little more detail on how to create a batch file for Sims 3.
https://sims3style.wordpress.com/2014/05/09/clearing-the-cache-how-and-why/

Sims 3 User Files Explained
https://sims3.crinrict.com/en/2011/01/faq-user-files.html

Create a batch file to delete game cache files
https://www.carls-sims-4-guide.com/forum/index.php?topic=3852.msg76731#msg76731

The Sims 3 Technical Help - Slow Game - Article gives another batch file example further down the page.
https://www.carls-sims-3-guide.com/technicalhelp/slowgame.php

Auto-Delete Sims 3 Cache and Run it on Steam
https://steamcommunity.com/sharedfiles/filedetails/?id=1853224297

TS3 Clean Start (Mod) for Steam and Origin (PC only)
https://modthesims.info/d/623008