Solved

Detecting a file open event in VB .Net

Posted on 2008-06-13
3
1,159 Views
Last Modified: 2010-05-18
I need to be able to detect when an Excel file is opened within a network folder.  Ideally I need something like the Watcher class which throws up events if any file is changed in a specified folder.  Unfortunately the watcher class generates messages for all evenets other the file open event.  Does anyone have an alternative using Win API calls that can capture this event?
0
Comment
Question by:FINDERSOL
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
planocz earned 500 total points
ID: 21778736
0
 

Author Closing Comment

by:FINDERSOL
ID: 31466879
Thanks, this does the job.  Jjust realised it was the notifyfilter criteria that I was missing in my code!
0
 
LVL 27

Expert Comment

by:planocz
ID: 21780663
I would like to see the code you used.
I could not get the notifyfilter to work right.
Thanks
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with LINQ and XML 10 36
Not seen Link button 5 39
Footer for each row on Gridview 2 21
No Data for DropDown List 2 25
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

777 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