FileSystemWatcher only works on Windows 2000 and Windows NT 4.0. Remote computers must have one of these platforms installed for the component to function properly. However, you cannot watch a remote Windows NT 4.0 computer from a Windows NT 4.0 computer. Windows XP能行不?
Windows XP能行不?
if(...) e.Cancel = true;
注销Changed事件:
this.fileSystemWatcher1.Changed -= new System.IO.FileSystemEventHandler(this.fileSystemWatcher1_Changed);