The Mac has a very nifty feature called folder actions which allow a script to be run every time a folder's contents change. Is there any equivalent to this functionality built in to Windows? I'm specifically interested in either Windows 7 or Windows Server 2008 R2. Links to documentation on such a feature would be most appreciated as well. Thanks!
Asked
Active
Viewed 3,927 times
1 Answers
2
As per the comments above. The two options I can see are either to create a batch file to do the watching of a folder and then call it via task scheduler;
How to monitor a folder and trigger a command-line action when a file is created or edited?
Alternatively, you could code a solution using C++ or similar to take advantage of directory change notification as detailed on MSDN here;
http://msdn.microsoft.com/en-us/library/aa365261(VS.85).aspx
As you rightly say, neither is a truly native solution, however either should get you the desired result.