<< Click to Display Table of Contents >> Navigation: File System Tools > purgetemp > Usage |
Command Line Parameters
purgetemp /a <PATTERN> /d /r /s /l /t <days> /p <path>
/a <PATTERN> |
Pattern which must be present in the %TEMP% environment variable |
/d |
Delete files, by default only lists statistics |
/r |
Delete files with read-only attribute set |
/s |
Delete files with system attribute set |
/l |
Delete hidden files |
/t <days> |
Delete files not modified in <days> days, 120 by default |
/p <path> |
Examine <path> path instead of %TEMP% directory |
Examples
Example 1: Delete all files from the temp directory which have not been modified in 180 days:
purgetemp /d /t 180
Example 2: Delete all files from the C:\Temp directory which have not been modified in 2 months:
purgetemp /d /t 60 /p C:\Temp