Home arrow VB.Net arrow Watching Folder Activity in VB.NET
VB.NET

Watching Folder Activity in VB.NET


Our resident VB.Net guru is back! In this article Jayesh shows us how to use the FileSystemWatcher class to monitor folders for changes.

Author Info:
By: Jayesh Jain
Rating: 5 stars5 stars5 stars5 stars5 stars / 69
October 13, 2002
TABLE OF CONTENTS:
  1. · Watching Folder Activity in VB.NET
  2. · Getting Started
  3. · Building Our Application (contd.)
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Watching Folder Activity in VB.NET
(Page 1 of 4 )

Have you ever wanted to write an application that constantly monitors a folder and raises events when there is any activity in that folder? In the good old days using VB6, you had to use windows APIs to do something like this, which was not very simple and required a lot of coding.

The Microsoft .NET Framework has introduced classes like System.IO and System.Diagnostics, which contain the FileSystemWatcher class. This class can raise events when a file is created, renamed, updated or deleted from the specified folder.

In this article we're going to learn how to implement the FileSystemWatcher class using Microsoft Visual Basic.Net. You will need the .NET framework installed, as well as Visual Studio.Net if you want to experiment with the source code presented in this article.
blog comments powered by Disqus
VB.NET ARTICLES

- MyClass - Implementing Polymorphism in VB.Net
- Building a News Ticker Using VB.Net
- Everything You Wanted to Know About Forms In...
- Building Assemblies with VB.Net
- Simple VB.NET Notify Icon with Panel Applica...
- Regular Expressions in .NET
- String Encryption With Visual Basic .NET
- Deploying Applications in VB.NET: Part 1/2
- Watching Folder Activity in VB.NET
- Creating A Windows Service in VB.NET
- Implementing The Google Web Service In VB.NET
- Migrating to Visual Basic.NET from Visual Ba...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials