1

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 ?

3 Answers 3

1

https://serverfault.com/questions/277450/how-to-trigger-a-task-at-any-change-on-a-folder-with-windows-server-task-schedul

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).

1
0

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.

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .