Showing posts with label FileSystemWatcher. Show all posts
Showing posts with label FileSystemWatcher. Show all posts

Friday, April 16, 2010

Monitoring the File System

Today one of my friend asked about retrieving the Time stamp value in C# whenever a file is Renamed. I was not sure as how to achieve this. As far as I know System.IO doesn't expose any property to retrieve the time stamp value whenever a file is renamed. We can use the System.IO.FileSystemWatcher class to monitor the file system.