LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Uncompress .Z file

Solved!
Go to solution

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 

  

 

 

 

 

 

0 Kudos
Message 1 of 5
(4,097 Views)

*.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. 😉

Message 2 of 5
(4,083 Views)

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. Smiley Sad

 

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

Message Edited by howmean on 05-19-2009 08:50 PM
0 Kudos
Message 3 of 5
(4,054 Views)
Solution
Accepted by topic author howmean
As already mentioned, a .z file is not at all the same thing as a .zip file. The unzip function is for zip files, not .z, .tar, or any other compressed format.
0 Kudos
Message 4 of 5
(4,043 Views)

noted.  Thanks.

0 Kudos
Message 5 of 5
(4,038 Views)