Can someone provide me a sample code of c# polling which will look for files in a folder and if the files are there then execute a batch files. If the files are not there then check the folder every 30 minutes. Also once it finds all the files wait 10 minutes before starting the batch file.
Share
Polling is not good as it will load your CPU up to 100%.
Use
FileSystemWatcherClass instead.Here is an example
EDIT: Well, if you want to make your manager happy, you can do following 🙂