B
bayxarea-usenet
I want write a batch routine that will run multiple process - launch
them at the same time - but not return until they have all completed.
This is on Windows XP.
The process I want to call is a command line conversion utility that
will convert CGM files to HPGL files and it can take a while to execute
- currently I have the option to call system on each on in a loop - but
this is in series and means that each process will only start after the
previous one has finished.
I will be passing the batch script a filename of CGM files to convert
so there should be a new process for each CGM file found in the input
data file.
I was thinking of trying to get the process id or something like that
for each process and then monitor them and then return (or write
'FINISHED' to an output file when they all have actually completed
executing.
Is there a best way to handle this on Win32?
John
them at the same time - but not return until they have all completed.
This is on Windows XP.
The process I want to call is a command line conversion utility that
will convert CGM files to HPGL files and it can take a while to execute
- currently I have the option to call system on each on in a loop - but
this is in series and means that each process will only start after the
previous one has finished.
I will be passing the batch script a filename of CGM files to convert
so there should be a new process for each CGM file found in the input
data file.
I was thinking of trying to get the process id or something like that
for each process and then monitor them and then return (or write
'FINISHED' to an output file when they all have actually completed
executing.
Is there a best way to handle this on Win32?
John