-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
34 lines (26 loc) · 1.48 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Cleanup
=======
Console tool for cleaning up old files in a directory tree
-----------------------------------------------------------------------------
Cleanup v1.6 - Delete old files and directories - TechnologySolutions
-----------------------------------------------------------------------------
Usage : Cleanup directory age [options]
directory : Directory to cleanup
Like: drive:\path or \\server\share\path
age : Delete files older than .. days
Looking at youngest date modified/created
0 will delete all files
/F:filter : Only delete files which match this filter
Like: /F:*.abc or /F:filename.ab?
/EF:filter : Exclude files which match this filter
Like: /EF:keep.me or /EF:*.doc
/R : Recurse subdirecotries
/D : Delete empty subdirectories (same as: /D:1)
/D:level : Only delete empty directories from .. level and below
Like: Cleanup.exe c:\rootdir 7 /r /d:2
Will remove empty directory c:\rootdir\level1\level2 but not directory level1
/SIM : Simulate, don't delete anything
/LOG : Write output to screen and to Cleanup.log
/LOG:logfile : Write output to screen and to logfile
Like: /LOG:cleanup.log or /LOG:"C:\Log Files\cleanup.log"
.cleanupignore : A directory can be ignored by placing a file named .cleanupignore in it