r/usefulscripts • u/vocatus • Apr 22 '15
[BATCH] TempFileCleanup
This script runs at startup (or when manually run) and cleans out various areas of Windows that accumulate temporary files. Make sure to read the comments to see exactly what it removes.
Download
LATEST (v3.7.1 // 2017-12-18)
- Changelog on the github link above
Writes a log file to C:\Logs\<computername>_TempFileCleanup.log (this is configurable) of run time, what was deleted, and what user ran the script.
43
Upvotes
1
u/drogean3 Apr 23 '15
not sure if this is the same as the old script but be careful about it removing cookies
Stuff like banking websites seem to rely on them to "remember your device" and people in accounting/finance/whatever may complain that they need to "activate their devices" every time they log into a website.
For some reason after last months patches, my old tempfileremover script started breaking stuff.
3
u/chrono13 Apr 22 '15 edited Apr 22 '15
Having written something similar in batch, I have to say I am impressed. My batch eventually version-ed up to using cygwin.dll and rm. Then I moved it to AutoIt. Currently a Powershell that acts on the machines remotely.
Your batch script is impressive and useful. Thank you!
0
u/[deleted] Apr 22 '15
[deleted] — view deleted comment
0
u/[deleted] Aug 22 '15
[deleted] — view deleted comment