sri
Moderator

Joined: 28 Jan 2006
Posts: 381
Location: Hyderabad , India

|
Alter the "LastAccess" value for cleaning the Temp
Alter the "LastAccess" value for cleaning the Temporary files using Disk Cleanup utility
When you use the Disk Cleanup utility (cleanmgr.exe) to clear the files in %Temp% (Temporary folder), some of the files may not be cleared by the utility. This is because, the Cleanmgr.exe by default, deletes the files in Temp folder, that are older than 7 days.
You can however, alter the period by modifying the LastAccess value in this registry key:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ VolumeCaches \ Temporary Files
The number of days that must have elapsed since a file was last accessed or a directory was created for that file or directory to be considered for cleanup.
Type Regedit.exe in Start, Run dialog. Navigate to the above registry key. Backup the key and then alter the value accordingly. The default LastAccess value is 7 for Temporary files cleanup. You can change it to 4 or 5 (days). Setting it to 0 removes all the files in the folder.
|