In linux/mac, for monitoring the changes in a file or directory, I can use tools like gruntjs, this launch tasks when a file is modified ?
exist a similar tool for windows ?
In linux/mac, for monitoring the changes in a file or directory, I can use tools like gruntjs, this launch tasks when a file is modified ?
exist a similar tool for windows ?
Don't think its possible with Task Scheduler, but Powershell should be able to do it (Assuming your running a version of Windows with Powershell).
You can write a batch file that will run in an infinite loop with, say, 1s delay between checks. The batch file would issue DIR
command for target directory/file and redirect output to a temporary file. It could then issue a COMP
command to compare with previous output of DIR
and if output of COMP is not null custom action could be performed.
Two tools, that can do exactly what you need.
1.TheFolderSpy-Freeware-Download link
2.Watch 4 Folder-pay version-Download link
You can execute any *.exe file when a file/folder is modified, and "Watch 4 Folder" can execute a *.bat file also.