Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. FileSystemWatcher fwatcher = new FileSystemWatcher();
  2. fwatcher.Path = "blah"
  3.  
  4. fwatcher.NotifyFilter=NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.FileName;
  5.  
  6. fwatcher.Created += new FileSystemEventHandler(FileCreated);
  7.  
  8. watcher.Created += new FileSystemEventHandler(OnChanged);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement