I already have a windows service with a filesystemwatcher that checks for any file that has been changed (e.g. size). If a logfile has reached 1mb, it will be copied into another folder and the original logfile will be cleared.
I made a windows form project that has a button that simulates what my windows service is doing. I tried creating a forloop that will check the size of multiple textfiles. I created 3 logfiles that exceeds 1mb and ran my project. It gave a "The device is not ready" error, it's with the StreamWriter. I think that all the files are being read and backed up at the same time.
To sum it all up: How can I make it not backup all the files simultaneously? I read about processes but I think its for executables only, am I right?