Windows OS level file open event trigger

Posted by john on Super User See other posts from Super User or by john
Published on 2012-09-18T20:53:00Z Indexed on 2012/09/18 21:41 UTC
Read the original article Hit count: 162

Filed under:
|

Colleagues, I have need to run a script/program on certain basic OS level events. In particular when a file in Windows is opened. The open may be read-only or to edit, and may be initiated by a number of means, either from windows explorer (open or ), be selected from a viewing or editing application from the native file chooser, or drag-n-drop into an editing or viewing application.

Further, i need the trigger to "hold" the event from completing the action until the runtime on the program has completed. The event handler program may return a pass state, or fail state. If fail state has been returned, then the event must disallow the initially requested action.

Lastly, I need to add to the file in question a property or attribute that will contain metadata that will be used by the above event trigger handler program to make a determination as to the pass/fail condition that will ultimately determine if the user is permitted to open the file.

Please note that this is NOT a windows event log situation, but one at the OS level file open event.

thanks very much for your help.

regards, j

© Super User or respective owner

Related posts about file-management

Related posts about events