in reply to Collecting the output of command prompt

This batch file in turn executes another batch file after some processing.This second batch file dumps either success or failure messages on to the command prompt

Can you modify your system calls so they direct output?
file2 1>out.file 2>err.file

don't forget that system "bypasses any shell processing of the command" if you use more than 1 argument.

## assumes $file2 is executable ## won't work system( $file2, $out, $err ) ## will work system( "$file2 $out $err" )

You may or may not want to use this method, though, depending on your actual circumstances. Later, you can read $out and $err if need be.

Will perl for money
JJ Knitis
(901) 756-7693
gt8073a@industrialmusic.com