Very simple command line application that keeps a directory clean by copying the directory files to subdirectories by date and removes the oldest ones according to the maximum number of days to keep old data.

The idea is to call this program once a day for directories like 'Downloads', where it's handy to use always the same directory path for the browser downloads. With this small application the directory can be clean, only with the files downloaded today and the old downloads can be accessed during some days. The search of old files is easy, because the old subdirs have a name with the date in format "year_month_day".

The call from the command line has two parameters:
* the directory to clean up
* the number of days to keep the old subdirectories

If more than one directory has to be cleaned up a different call has to be done for every directory.

It needs to have Java installed (version>=8). Call example:

java -jar DirAutoCleaner-<version>.jar C:\MyUser\Downloads 14

Project Activity

See All Activity >

License

MIT License

Follow DirAutoCleaner

DirAutoCleaner Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of DirAutoCleaner!

Additional Project Details

Operating Systems

Linux, Mac, Windows

User Interface

Command-line

Programming Language

Java

Registered

2018-07-08