Solved

filesystemwatcher

Posted on 2006-06-09
1
317 Views
Last Modified: 2010-04-16
is there a way to set the filter to look for 2 different types of files..
I type this in the property box under filter

Filter = *.xls, *.doc

I have not been able to get it to work
0
Comment
Question by:bman9111
1 Comment
 
LVL 1

Accepted Solution

by:
mrsreeraj earned 50 total points
ID: 16875683
use empty string to watch for all files

You could also create
several FileSystemWatchers (array) and hook them up with the same event,
like this:

TextFileWatcher.Created += new FileSystemEventHandler(Watchers_Created);
ExeFileWatcher.Created += new FileSystemEventHandler(Watchers_Created);
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Data Saving(2) 2 41
How to Get total minutes between two hours 4 44
What is Thread.Sleep? 5 45
C# HTTP GET method sample code 3 39
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 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

21 Experts available now in Live!

Get 1:1 Help Now