Automatically cycle numerous or large files to the trash

Posted by minameismud on Super User See other posts from Super User or by minameismud
Published on 2010-05-25T12:55:49Z Indexed on 2012/06/09 4:43 UTC
Read the original article Hit count: 261

Filed under:
|
|

I've been tasked with fixing a vendor's program that, under certain conditions, dumps gigs of junk files into a log directory. It ends up filling users' machines. My task is to figure out how to make it stop without any source code or additional running processes, and without making the program kasplode. In other words, I'm looking to use a feature of the file system to control the growth.

One idea I had was to make a hard link from that folder to NUL, as you might with /dev/null in the linux world. However, my attempts to use the mklink program to create a junction result in a message that says Local volumes are required to complete the operation.

Any ideas on how to complete the junction, or other ideas to solve the problem?

© Super User or respective owner

Related posts about Windows

Related posts about symbolic-link