Hi, I'm using a command line unzip program wzunzip.exe
When I run program>wzunzip.exe their are times when the zip file is invalid.
Is their away to catch the error?
Thanks
Frank
wzunzip
Moderators: Dorian (MJT support), JRL
Hi,
First - use RP_WAIT to make sure the Run Program command waits for the zip program to complete before the script continues.
To grab the result of the operation try piping the command output to a text file and then reading the text file in with ReadLn to analyse the results. Something like:
Let>RP_WAIT=1
Run>CMD.EXE /c wzunzip.exe zipfile ... etc etc >> c:\temp\zipoutput.txt
..
ReadLn>zipoutput.txt
.. etc etc
Use command.com instead of CMD.EXE if you are on Win9x
Hope this helps.
First - use RP_WAIT to make sure the Run Program command waits for the zip program to complete before the script continues.
To grab the result of the operation try piping the command output to a text file and then reading the text file in with ReadLn to analyse the results. Something like:
Let>RP_WAIT=1
Run>CMD.EXE /c wzunzip.exe zipfile ... etc etc >> c:\temp\zipoutput.txt
..
ReadLn>zipoutput.txt
.. etc etc
Use command.com instead of CMD.EXE if you are on Win9x
Hope this helps.
MJT Net Support
[email protected]
[email protected]