05-19-2009 07:38 AM
Hi,
Just like to know if anyone has ever tried using "Unzip.vi" to uncompress a ".Z" file.
I tried but Error code 42 is returned.
"NI_Unzip.lvlib:Open unZip File.vi<ERR>
Error opening the zip file.
<b>Complete call chain:</b>
NI_Unzip.lvlib:Open unZip File.vi
NI_Unzip.lvlib:Unzip.vi
Untitled 2"
Wonder if "Unzip.vi" only recognises .zip format?
When I tried to unzip the ".Z" file manually using WinZip, there is no problem.
Thanks,
Mean
Solved! Go to Solution.
05-19-2009 08:16 AM
*.Z is not a zip format but comes from the old unix compress utility.. Many unzip programs support other compression formats and that's why winzip succeeds.
personally, I prefer 7zip, which is open source and completely free and avoids the registration nags of winzip. 😉
05-19-2009 08:49 PM - edited 05-19-2009 08:50 PM
Downloaded 7zip and used it. Really handy to use and I really prefer it than WinZip.
But that still does not solve my problem here.
What I am trying to do in my application is:
1. Download a file from a webpage. (It is a .Z compressed file)
2. Use "Unzip.vi" function in "FileIO >> Zip >>" palette in LabView 8.5
The downloading part was done by using a Datasocket function and it works.
The "uncompress .Z file" part is not successful.
I've attached the .Z file in the previous post.
Wonder if it is a restriction of "Unzip.vi"?
Thanks.
Mean
05-19-2009 10:07 PM
05-19-2009 10:28 PM
noted. Thanks.