Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

How do I listen on a directory?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Haim - 28 Sep 2004 09:20 GMT
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.
Jakob Christensen - 28 Sep 2004 09:49 GMT
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/frlr
fSystemIOFileSystemWatcherClassTopic.asp


HTH, Jakob.

> 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
[quoted text clipped - 4 lines]
>
> Haim.
Haim - 28 Sep 2004 10:01 GMT
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.
>
[quoted text clipped - 8 lines]
>>
>.
Sooraj PM - 28 Sep 2004 09:49 GMT
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

> 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
[quoted text clipped - 4 lines]
>
> Haim.
Haim - 28 Sep 2004 10:01 GMT
Seems that its exactly what I was looking for :-)

Haim.

>-----Original Message-----
>Hi
[quoted text clipped - 16 lines]
>>
>.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.