annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Uncompress .Z file

Résolu !
Accéder à la 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 Compliments
Message 1 sur 5
4 268 Visites

*.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 sur 5
4 254 Visites

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 triste

 

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 Compliments
Message 3 sur 5
4 225 Visites
Solution
Accepté par l'auteur du sujet 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 Compliments
Message 4 sur 5
4 214 Visites

noted.  Thanks.

0 Compliments
Message 5 sur 5
4 209 Visites