I have a requirement where I have to create a program which watches a folder. The user will input files into the folder which the program will pick up from time to time and process it. The catch here is if a user is copying files during the time the program begins processing the folder, the program should stop and try again some time later. For example if user is copying 5 file into the target folder and has only finished copy 2 at the time program wakes up, the program should not process the 2 files.
In order to do this I require to find out if copy process is in progress on the folder. I would be very grateful if some one could point me to right direction in regards to how I will be able to achieve this using C# or Vb.net.
Thanks and Regards