This documentation is archived and is not being maintained.

Reacting to File System Events

Using the FileSystemWatcher component and language features in Visual Studio or the Windows Software Development Kit (SDK), you can easily monitor actions occurring within directories and files on your system or on any computer to which you have network access.

Introduction to Monitoring File System Events

Provides basic information about file- and directory-watching features in Visual Studio and the Windows SDK.

How to: Create FileSystemWatcher Component Instances

Gives directions for creating instances of FileSystemWatcher components in your projects.

How to: Configure FileSystemWatcher Component Instances

Gives directions for setting properties to determine the behavior of FileSystemWatcher components.

How to: Create Handlers for File System Events

Provides recommendations for creating event handlers that will automatically take action when file system events are raised.

Considerations for File Changes on High-Volume Systems

Provides information about controlling the flow of file system events on systems with high activity.

How to: Wait Until Specified File System Events Occur

Gives directions for using the WaitForChanged method to monitor directories.

Walkthrough: Reacting to File System Events

Provides step-by-step instructions for how to respond to events with the FileSystemWatcher component.

Troubleshooting FileSystemWatcher Components

Explains how to remedy some common problems.

Programming with Components

Presents a high-level overview of component programming and authoring.


Describes the major features of the FileSystemWatcher class.

Default Project Templates in Visual Studio

Describes the projects types used in this chapter and how to choose between them.

Deploying Applications and Components

Lists the major deployment pages and the information they contain.