NOTIF : Files and dirs changes notifier
You can find a functional example here (french).
-
Monitor folder c:\www\ and all its subdirectories. Only "filename changing" event
is monitored and printed on stdout; start "..\msgbox.cmd" if such an event occurs:
notif c:\www -s -e:f -x:"..\msgbox.cmd"
See the Remark section for more info on the environment variables defined by notif.
-
Monitor folder c:\www\ and all its subdirectories. All notifications
events are printed on stdout:
notif c:\www -s -e:x
-
Monitor folders c:\www\ and c:\ftp\ and all their subdirectories.
Only "filename change " and "attribut change" are monitored and printed on
stdout:
notif c:\www\ c:\ftp\ -s -e:fa
-
Monitor folders c:\www\ and c:\ftp\ and all their subdirectories.
Log results in file "c:\logs\notify.log" and detach notif.exe from
console. Only "file size change " and "attribut change" are monitored:
notif c:\www\ c:\ftp\ -s -o:c:\logs\notif.log -d -e:sa
-
Monitor folders c:\www\ and its subdirectories. Log results in file "c:\www\logs\notify.log".
Only "filename change " and "attribut change" are monitored:
notif c:\www\ -s -o:c:\www\logs\notif.log -e:fa
This generates an error and stops: Output file must not be located in a monitored
path (see Remarks)
-
Monitor folder c:\www\xml and beautify any XML dropped in it, moving the resulting file to c:\www\xml-fo:
notif c:\www\xml\ -e:f -x:"beautxml.cmd"
beautxml.cmd could contain for instance the following lines:
@echo off
for %%a in (c:\www\xml\*.xml) do xml fo %%a > %%~dpa..\xml-fo\%%~nxa