Skip to content

Commit b24fdad

Browse files
authored
Created readme
1 parent 26ac0d2 commit b24fdad

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# DirectoryCleanup
2+
A console application that recursively deletes any file that has not been modified in a given number of days and any empty subdirectory. Deleted files and subdirectories are moved into the recycle bin.
3+
4+
This was created in order to keep my downloads folder and desktop from continously growing, and to encourage me to organize my files properly.
5+
6+
# Usage
7+
By default, the program will remove any file that has not been modified in 7 days, and any empty subdirectory.
8+
9+
Simply call the program with a directory as the parameter:
10+
11+
`DirectoryCleanup c:/your/path/here/`
12+
13+
Alternatively, you can specify the number of days with the -d parameter.
14+
15+
Here is an example that will remove any file that has not been modified in 10 days, and any empty subdirectory:
16+
17+
`DirectoryCleanup -d10 c:/your/path/here/`
18+
19+
I recommend that you run the program as a [scheduled task](https://technet.microsoft.com/en-us/library/cc748993(v=ws.11).aspx), otherwise you will have to run the program manually every time you want to clean a particular folder.

0 commit comments

Comments
 (0)