Help regarding FileSystemWatcher

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2006
Posts: 57
Reputation: Exelio is an unknown quantity at this point 
Solved Threads: 0
Exelio Exelio is offline Offline
Junior Poster in Training

Help regarding FileSystemWatcher

 
0
  #1
Nov 15th, 2007
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

Exelio
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC