>The only approach I could find of is to filter for specific string in the output result. If the file is not a .zip compliant file, I may get something like this:
>
>"End-of-central-directory signature not found."
>
>So, if the output includes this, I know it failed. There could be various variations of such message. For now, I will add them up as I find them. If someone has a better idea, let me know.
Sometimes, ZIP utilities have a command that just checks the integrity of the archive, without actually unZIPping its contents.
If you are unZIPping to an empty directory, you could see if any files got created. Or, if you know the name of a file that's supposed to be present in the output, or a pattern like YYYY-MM-DD.TXT you could search for that.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up