I have an c# winform application that runs under a local account but needs to monitor folders on a domain. I am using slightly modified code from here to copy the files and that works fine. Can similar code be used with the FileSystemWatcher set up impersonation so I can monitor a folder on a domain?
Share
Yes, there is a good impersonation class here, include this class in your project and than simply place your FileSystemWatcher within a using block like this: