Engadget for the iPhone: download the app now
AOL Tech

sybgtwy

Member since: Dec 9th, 2008

sybgtwy's Latest Comments

Blog Activity
Blog# of Comments
Engadget3 Comments
Download Squad1 Comment

Recent Comments:

Cleano cleans your temp files every time you login (Download Squad)

Dec 9th 2008 8:09AM You know what else works, and is free? Batch files called as scheduled tasks on startup.

This one renames your existing temp, in case you're a packrat and need to save some files that shouldn't be there, but are. Because you renamed it, you can delete it when done (no pointers during your new session).

@echo off
FOR /F "TOKENS=2-4 DELIMS=- " %%F IN ('DATE /T') DO (
SET YYYY=%%F
SET MM=%%G
SET DD=%%H
)
REM debug statements
REM echo %YYYY%
REM echo %MM%%
REM echo %DD%
FOR /F "TOKENS=1-2 DELIMS=: " %%F IN ('TIME /t') DO (
SET HR=%%F
SET MN=%%G
)
set fullstamp=%YYYY%_%MM%_%DD%_%HR%%MN%
REM debug statement
REM echo %fullstamp%
set newtemp=temp_%fullstamp%
REM this is the volume for tempfiles, pagefiles
f:
cd\
rename temp %newtemp%
mkdir temp

You can easily rewrite it to this:
@echo off
f:
cd\
rmdir /s /q temp
mkdir temp

The solution extends to any subdirs you can find. Graphical, no. Fast, yes.