I have a file watcher code that actually someone here (Eric - emaru?) helped me with. I need to make a change to the code and not sure how to do it.
I have this example:
If you scroll down, i want to do this;
I subscribe to the Changed- and Renamed-event and try to rename the file on every Changed-event catching the IOExceptions. If the rename succeeds, the copy has finished and the Rename-event is fired only once.
Based on this http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
1. watcher.Renamed += new RenamedEventHandler(OnRena
2. what do I need in OnRenamed?
3. watcher.Changed += new FileSystemEventHandler(OnC
4. what do I need in OnChanged here?