新建一个Console应用程序,项目名称为“FileSystemWatcher”,Copy代码进,编译后就可以用了.代码如下: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Security.Permissions; namespace MyFileSystemWatcher { public class Watcher { public stati