private void fileSystemWatcher1_Changed(object sender, System.IO.FileSystemEventArgs e){fileSystemWatcher1.EnableRaisingEvents = false;//文件处理事件FileOperation();fileSystemWatcher1.EnableRaisingEvents = true;}
并将fileSystemWatcher1的NotifyFilter属性设置为Size
时间:2023-05-17 10:02:06
private void fileSystemWatcher1_Changed(object sender, System.IO.FileSystemEventArgs e){fileSystemWatcher1.EnableRaisingEvents = false;//文件处理事件FileOperation();fileSystemWatcher1.EnableRaisingEvents = true;}
并将fileSystemWatcher1的NotifyFilter属性设置为Size