Jump to content

Recommended Posts

Posted

Here is a more universal version:

@Echo off
cls
deltree /y "%SystemRoot%\temp\*.*"
deltree /y "%SystemRoot%\WUTemp\*.*"
deltree /y "%SystemRoot%\system32\config\systemprofile\cookies\*.*"

Rem: No need to duplicate the following section for each registered User
deltree /y "%USERPROFILE%\Cookies\*.*"
deltree /y "%USERPROFILE%\History\*.*"
deltree /y "%USERPROFILE%\recent\*.*"
deltree /y "%USERPROFILE%\Local Settings\cookies\*.*"
deltree /y "%USERPROFILE%\userdata\*.*"
deltree /y "%USERPROFILE%\Local Settings\History"
deltree /y "%USERPROFILE%\Local Settings\Temp\*.*"
deltree /y "%USERPROFILE%\Local Settings\History\Temporary Internet Files\Content.IE5\*.*"
deltree /y "%USERPROFILE%\Local Settings\Temporary Internet Files\Content.IE5\*.*"

deltree /y "C:\Documents and Settings\NetworkService\Cookies\*.*"
deltree /y "C:\Documents and Settings\NetworkService\Local Settings\History\History.IE5\*.*"
deltree /y "C:\Documents and Settings\NetworkService\Local Settings\Temp\*.*"
deltree /y "C:\Documents and Settings\NetworkService\Local Settings\Temporary Internet Files\Content.IE5\*.*"

deltree /y "C:\Documents and Settings\LocalService\Local Settings\History\History.IE5\*.*"
deltree /y "C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5\*.*"
deltree /y "C:\Documents and Settings\LocalService\Local Settings\Temp\*.*"
deltree /y "C:\Documents and Settings\LocalService\Cookies\*.*"

deltree /y "C:\Documents and Settings\Administrator\Local Settings\Temp\*.*"
deltree /y "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\*.*"
deltree /y "C:\Documents and Settings\Administrator\Local Settings\History\*.*"
deltree /y "C:\Documents and Settings\Administrator\Cookies\*.*"

deltree /y "%TEMP%\*.*"
deltree /y "%TEMP%orary Internet Files\*.*"
deltree /y "%USERPROFILE%\Local Settings\History\*.*"
deltree /y "%USERPROFILE%\Cookies\*.*"

deltree /y "C:\$VAULT$.AVG\*.*"
deltree /y "C:\Regclean\*.reg"
deltree /y "%SystemRoot%\prefetch\*.*"
deltree /y "C:\Program Files\CallWave\Calls\*.*"
deltree /y "%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Profiles\DEFAULT.HKJ\Cache\*.*"
deltree /y "%SystemRoot%\system32\WgaTray.exe
deltree /y "%SystemRoot%\system32\dllcache\WgaTray.exe
deltree /y "%SystemRoot%\system32\wgalogon.dll
deltree /y "%SystemRoot%\system32\dllcache\wgalogon.dll


Posted

"Treesize" is also a good directory size tool - it adds to the context menu too, so you can see a heirichal (sorry - spelling :P) view of that directory and everything under it. Colour codes the larger sizes, etc... and is free with no nag screens :)

  • 2 weeks later...
Posted

Plamdi,

Thanks.....I've been looking for some of the improvements you listed.

I just found out too, on another forum, that typing "set" in a command prompt will give you all those shortcuts.

We live and learn!

I've already modified my Generic XPCleanup.bat program on my website to reflect those changes.

Thanks for your input. It's appreciated! :thumbup

B)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...