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
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
    LVL 16

    Expert Comment

    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 ( to use this.


    Author Comment

    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

    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

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now