static void watcher_changed2(object sender, FileSystemEventArgs e) { Console.WriteLine("Deleted {0}, {1}", e.GetType(), e.FullPath); }
// Define the event handlers. private static void OnChanged(object source, FileSystemEventArgs e) { // Specify what is done when a file is changed, created, or deleted. Console.WriteLine("File: " + e.FullPath + " " + e.ChangeType); Console.WriteLine(e.GetType()); }