Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Knowing success with WZUnzip.exe
Message
From
03/08/2011 15:29:20
 
 
To
03/08/2011 15:21:53
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01520097
Message ID:
01520102
Views:
36
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform