when i saw that we can get the file list by pattern *.xml , i was expecting
some thing simlar, which will also take the number of files as parameter and
possibly the order by Date.
Basically what i want to do is Process A will poll the directory for Files,
let us say 100 Files are there in the system, it will take the 10 Files and
give it to 10 Threads for the work to be done with the file and move the
files to some other Directory once Finished. Process A will poll after say 1
min to get the next set of files but it should fetch only 10 - (Finished
thread say this is 6)
so we need to fetch 4 Files and give it to 4 more threads, and the process
continues.( only 10 thread should be running a a time).
These are the issues Process A could pick the Same File that one of the
thread is using (this can be avoided by changing the file name by the
thread).
I hope i have explained what i am trying to do.
thanks
bhu
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Blu,
I am curious what is in your idea the advantage of that? Will you tell us
that?
Cor
"bhu" <bh**********@hotmail.com> schreef in bericht
news:ev**************@TK2MSFTNGP02.phx.gbl... This way i already have it, but
i was expecting in a single function where we could say get 10 file,
thanks for the info.
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl... >Also is there a way to get the First Set of File by the Date and time
>Stamp
FIFO
Read the file information (file name and date/time) for all files in
the directory into a list. Sort by file time. Process in batches of
ten. It doesn't have to be more complicated than that. If you have
further questions on how to implement one of those steps, feel free to
follow up with a more detailed question.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.