Skip to content
This repository was archived by the owner on Jun 27, 2021. It is now read-only.

Latest commit

 

History

History
58 lines (45 loc) · 1.73 KB

File metadata and controls

58 lines (45 loc) · 1.73 KB

ci download license pr issues

Corlib Trigger Service

A Windows Service that performs actions when triggers are invoked.

Installation

Install the Windows Service cltrigger.exe install

Configure one or more triggers: cltrigger.json

[
  {
    "triggerFile": "c:\\notepad.trigger",
    "processAction": {
      "fileName": "notepad.exe",
      "windowStyle": "minimized"
    }
  }
]

Usage

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.

Trigger file

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.

Process action

Invokes the specified process with the specified arguments.

Options

  • fileName
  • arguments
  • createNoWindow
  • useShellExecute
  • verb
  • WindowStyle
  • workingDirectory

Future direction

  • Additional triggers
    • UDP
    • authenticated HTTP
  • Additional actions
    • Windows service operations
    • Windows tasks