Learn how to a build a cloud-first strategyRegister Now


How to add a process to an specific operating system action - i.e. when a date file is saved to hard disk

Posted on 2006-06-01
Medium Priority
Last Modified: 2010-04-18
I'm looking for a way to add a process to a specific operating system action.

When a data file is created, it is written to the hard drive on our Microsoft Windows 2003 Server Standard.  Before it is written to the hard drive, I want have an additional task performed.  Example: User saves a new word processing document, I want the operating system to display a screen asking the user to provide some information (which I will store in a database) about the document - security clearance, how long to retain, keywords, etc. - then save the data file on the hard drive.

If it is not possible to do this at the OS level, then can it be done at the application level - Word, Adobe Professional, etc.?

My ultimate goal - make it easier for content to be properly tagged and categorized as it's created, making the process natural and easy. As opposed to the current situation - "OK user put you're stuff wherever - it doesn't really matter, we hope our expensive, slow and not intuitive search tool will find it.". However, even the best search tools often don't pull up the content that you really want, especially if the search terms are broad or keywords are not contained in the document [example: this document is part of project Q12345].
Question by:greinert
  • 2
LVL 16

Expert Comment

ID: 16813839
In the .NET framework you can use the FileSysteWatcher class to monitor activity on a local or network folder.
You'd have to program your tool in a .NET language (vb.net/C#/J#) to use this.


Author Comment

ID: 16815831
Sorry, not what I am looking for.

Again need a method to stop the file save process and allow me insert an application to force the user to enter the required data.  Similar to turning on the Document Proprties feature on Word 2003.
LVL 16

Accepted Solution

Redwulf__53 earned 2000 total points
ID: 16815880
That is not possible in Windows unless you create your own operating system dll's.... Microsoft doesn't supply an interface for the "on file write" event.
The only workaround I can think of is using VBA Macro's in your office apps, or to develop an Office add-in.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question