Reacting to File System Events
Using the FileSystemWatcher component and language features in Visual Studio or the .NET Framework SDK, you can easily monitor actions occurring within directories and files on your system or on any computer to which you have network access.
In This Section
- Introduction to Monitoring File System Events
-
Provides basic information about file- and directory-watching features in Visual Studio and the .NET Framework 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.