Initializes a new instance of the FileSystemWatcher class, given the specified directory to monitor.
[Visual Basic] Overloads Public Sub New( _ ByVal path As String _ ) [C#] public FileSystemWatcher( string path ); [C++] public: FileSystemWatcher( String* path ); [JScript] public function FileSystemWatcher( path : String );
The component can be used to watch files on your personal computer, a network drive, or a remote machine.
Note You cannot watch a remote computer that does not have Windows NT or Windows 2000. You cannot watch a remote Windows NT 4.0 computer from a Windows NT 4.0 computer. The Filter property is set by default to watch all files.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | FileSystemWatcher Constructor Overload List | ChangedFilters | FileSystemEventArgs | FileSystemEventHandler | Filter | InternalBufferOverflowException | Path | RenamedEventArgs | RenamedEventHandler | WaitForChangedResult | WatcherChangeTypes | WatcherTarget