A Windows Service that performs actions when triggers are invoked.
Install the Windows Service
cltrigger.exe install
Configure one or more triggers: cltrigger.json
[
{
"triggerFile": "c:\\notepad.trigger",
"processAction": {
"fileName": "notepad.exe",
"windowStyle": "minimized"
}
}
]
Start the Windows Service
NET START CLTRIGGER
Create the trigger file
c:\notepad.trigger
Notepad should start minimized.
When notepad exists, the c:\notepad.trigger
file should be automatically deleted.
Similar to the “Folder Actions” feature of OS X. The service monitors for the existence of the file, and invokes the specified action. Subsequent actions are queued if another file is created while the action is executing.
Note: the trigger file is intended to be a zero-byte file specifically created to invoke this trigger action.
Invokes the specified process with the specified arguments.
Options
- fileName
- arguments
- createNoWindow
- useShellExecute
- verb
- WindowStyle
- workingDirectory
- Additional triggers
- UDP
- authenticated HTTP
- Additional actions
- Windows service operations
- Windows tasks