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.