How to monitor a folder for changes, and execute a command if it does, on Windows?
Posted
by
Camilo Martin
on Super User
See other posts from Super User
or by Camilo Martin
Published on 2012-08-31T14:36:11Z
Indexed on
2012/08/31
15:42 UTC
Read the original article
Hit count: 271
There are similar questions for Linux and Mac, but I'm after a Windows solution here.
The problem is as follows: I want to write several (js) script files in a folder, and have a program monitor that folder for file changes and new files being added, and run a command whenever that happens (to compile them all into one single file).
The solution has to:
- Monitor both file changes and new files being added, in a folder.
- Run a command only if there is any change.
It would be best if it either is a built-in solution (like a JScript or VBscript snippet), or something that does not require installation.
© Super User or respective owner