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?