I know it is possible to use a listener on a directory so
that if there is any change I can catch it and update my
application accordingly.
Anybody know or have a code example as for how to do this?

Thanks,

Haim.

RE: How do I listen on a directory? by jch

jch
Tue Sep 28 03:49:02 CDT 2004

Sounds like a job for FileSystemWatcher. Check the documentation which also
contains examples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOFileSystemWatcherClassTopic.asp

HTH, Jakob.


"Haim" wrote:

> I know it is possible to use a listener on a directory so
> that if there is any change I can catch it and update my
> application accordingly.
> Anybody know or have a code example as for how to do this?
>
> Thanks,
>
> Haim.
>

RE: How do I listen on a directory? by SoorajPM

SoorajPM
Tue Sep 28 03:49:07 CDT 2004

Hi

Use FileSystemWatcher class. This monitors the file system and react when
the directories or files it contain got changed.

Regards
Sooraj PM
Microsoft Community Star


"Haim" wrote:

> I know it is possible to use a listener on a directory so
> that if there is any change I can catch it and update my
> application accordingly.
> Anybody know or have a code example as for how to do this?
>
> Thanks,
>
> Haim.
>

Thanks a lot! by Haim

Haim
Tue Sep 28 04:01:10 CDT 2004

Seems that its exactly what I was looking for :-)

Haim.

>-----Original Message-----
>Sounds like a job for FileSystemWatcher. Check the
documentation which also
>contains examples:
>http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfSystemIOFileSystemWatcherClassTopic.asp
>
>HTH, Jakob.
>
>
>"Haim" wrote:
>
>> I know it is possible to use a listener on a directory
so
>> that if there is any change I can catch it and update
my
>> application accordingly.
>> Anybody know or have a code example as for how to do
this?
>>
>> Thanks,
>>
>> Haim.
>>
>.
>

Thanks a lot! by Haim

Haim
Tue Sep 28 04:01:35 CDT 2004

Seems that its exactly what I was looking for :-)

Haim.

>-----Original Message-----
>Hi
>
>Use FileSystemWatcher class. This monitors the file
system and react when
>the directories or files it contain got changed.
>
>Regards
>Sooraj PM
>Microsoft Community Star
>
>
>"Haim" wrote:
>
>> I know it is possible to use a listener on a directory
so
>> that if there is any change I can catch it and update
my
>> application accordingly.
>> Anybody know or have a code example as for how to do
this?
>>
>> Thanks,
>>
>> Haim.
>>
>.
>