Hello all, I have a rather tricky VB problem I have not been able to solve so far.
I need to write a function that will "watch" an error folder for file population. If a file jumps into the error folder, I need to perform a series of operations (i.e. copy to another directory, rename, strip extension, ect. ) on the said file and delete it from the error folder in the end. The problem with this is the file that appears in the error folder is not always the same name. depending on the nature of the error, a range of different files can potentially appear. In addition, it is possible for more than one file to populate in this location at a time, it is not uncommon to have seven or more such files appear at once. I need some sort of way to constantly scan the folder to detect for errors even though my operations will only handle one at a time.
I tried doing this with a simple timer control but am having difficutly opening a folder and scanning for files without having the exact name. Any suggestions?