Friends,
I have to write a service that would listen to a folder and merge the files in that folder after certain number of
files are in. As some background I have a process that breaks a given file into multiple files, submits it to
another process which then feeds files into the monitored folder. e.g. If I have a file SomeFile.txt then it will
broken down into SomeFile0001.txt, SomeFile0002.txt,etc processed and fed into the final folder.
I know and can store the number of files each file is broken into.
Main problem here is that the last process does not feed the file synchronoulsy i.e. in the same order as it came
in, otherwise I would checked for the last file (as I have the count) and do the merge. In this case I have to
constantly monitor the files (count them, use regex after storing into array) which will slow down the flow.
I am looking for alternatives here. I am familliar with the Win32::ChangeNotify, AdvNotify methods, how to create
service etc. I just looking for a faster way.
 
Thanks in advance,
Sumit.

Reply via email to