Solved

filesystemwatcher

Posted on 2006-06-09
1
320 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

679 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