I have a folder with alot of different data types (xls, doc, ....). If there is a new file with some specific file extension (.avi) && the first letter of the file name starts with "EN_", the file should be moved to another folder. This should be run continuously, means when some file got moved it starts immediately with scanning for the next file with the specific properties (.avi & EN_). With my current knowledge I just would use a endless while loop. Is there maybe any other solution? How would you solve it?
Thanks in advance.