Filters

  • Thread starter Thread starter Iceman
  • Start date Start date
I

Iceman

I have the following in my code:

watchfolder = New System.IO.FileSystemWatcher()

What I want to do is have it watch for multiple file
types. Is there a way to specify multiple filters?

Thanks.
 
Iceman said:
I have the following in my code:

watchfolder = New System.IO.FileSystemWatcher()

What I want to do is have it watch for multiple file
types. Is there a way to specify multiple filters?

I think it is not possible. You probably have to watch all files and filter
manually in the FileSystemWatcher's event handlers.
 
* "Iceman said:
I have the following in my code:

watchfolder = New System.IO.FileSystemWatcher()

What I want to do is have it watch for multiple file
types. Is there a way to specify multiple filters?

AFAIS this cannot be done.
 
Armin Zingler said:
I think it is not possible. You probably have to watch all files and
filter manually in the FileSystemWatcher's event handlers.

I forgot to add, but you probably already know this: You can create several
FileSystemWatcher objects. Each one can watch one file type.
 
Back
Top