When a notification event occurs, notif can launch a script.
The script filename is defined with the command line option -x:"program_file"
Ex.: notif -x:"..\tools\script_file.cmd" [...]
The path to the script must be relative to the current working dir.
In the context of this new process, some environment variables are set by notif:
- NOTIFCMD_FIRED_EVENT
- This variable stores the event which triggered the notification.
- NOTIFCMD_FIRED_PATH
- This variable stores the monitored path for which the event occured as typed on the command line (e.g: ..\log).
- NOTIFCMD_FIRED_FULLPATH
- This variable stores the monitored full path for which the event occured (e.g: d:\home\ch\www\log\).