Help regarding FileSystemWatcher
-
hi all, I need to monitor a folder (also for the subdirectories) for changes or renaming. i am trying to use the File system watcher control and has set the path of the directory. i have written code in the rename event of filesystem watcher public void OnRenameEvent(Object sender, RenamedEventArgs e) { MessageBox.Show(e.OldName); } i have set the EnableRaisingEvents as true. but still when i am trying to rename the folder, the event is not getting triggered. What am i missing here?
Thanks in advance.:) Regards Anuradha
-
hi all, I need to monitor a folder (also for the subdirectories) for changes or renaming. i am trying to use the File system watcher control and has set the path of the directory. i have written code in the rename event of filesystem watcher public void OnRenameEvent(Object sender, RenamedEventArgs e) { MessageBox.Show(e.OldName); } i have set the EnableRaisingEvents as true. but still when i am trying to rename the folder, the event is not getting triggered. What am i missing here?
Thanks in advance.:) Regards Anuradha
Hi Anuradha, I hope the following link will help you...:) http://msdn2.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx[^] prakash