Solved

Detecting a file open event in VB .Net

Posted on 2008-06-13
3
1,178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

615 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