Copy 10 files Wait Copy 10 More

Discuss RoboTask here
Post Reply
archaix
Posts: 1
Joined: Thu Mar 12, 2009 6:48 pm

Copy 10 files Wait Copy 10 More

Post by archaix »

I have a large number of xml files that I'm converting into another format using an app that scans a certain folder for said xml files. When it sees a suitable file it creates a .lck file (temp file) when it's done processing it creates a .bin file. The trouble is that I can only process 10 files at a time, but I don't want to manually copy 10 xml files into this directory....wait for processing...then copy the next 10. Can robotask load 10 copy 10 files over, wait for the .bin's of those files to be created, then move the NEXT 10 over? I would like to have it copy then rename 10 files out of a folder of about 800, wait for those 10 files to be turned into .bin files (or ERR files if they have errors) then copy and rename the next 10. I'll come back and clean the err files up later.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Copy 10 files Wait Copy 10 More

Post by Oleg »

Yes, I think it's possible.
You may check the conversion process (EXE process) in memory in order to wait for finish of processing of the current 10 files
See "Wait for process" action.
Also You may Run conversion process with "Wait for Finish" option

Your task will be like this:

Set FileCount to 0
File Loop
   move current file
   increase FileCount
   if FileCount >=10 then
      Run conversion process with wait for finish
      Set FileCount to 0
   End If
End Loop
Run conversion process with wait for finish

Last step is necessary in order to process the rest files. It may be less than 10 files.
Post Reply