你需要使用 FileSystemWatcher。完整的 MSDN 文档在这里: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx。