ManWithNoName Posted April 13, 2013 Report Posted April 13, 2013 Hello I'm a beginner in Labview and I would like use some Vis in the OPenG ZIP Tool Library. I would like being able to extract a file in an archive protected with a password and the possibility to overwrite it. First, I have used the "ZLIB Extract All To Dir" Vi. It works fine except if the extracted file is already present. There is no OverWrite Option possibilities for this Vi. 2nd, I wanted to try to use the "ZLIB Open Unzip + ZLIB Extract + ZLIB Close Unzip Archive" However, I think I haven't understood the correct syntax to use the "ZLIB Extract" Vi. There is no Example about his usage in Help. On Target Path input, I have linked the Application Directory Constante (The place where I want to find the extracted file) On The Internal Name input , If there is nothing linked, I have the n°7 error that appears. If I link a string constante which countain the name of the unique file I want to extract, I have the n° 1059 Error that appears. PS : In each Case, the file is not extracted. The correct password is also linked to the password input. Is there anyone could help me about that ? Kind Regards Quote
ManWithNoName Posted April 13, 2013 Author Report Posted April 13, 2013 Please See Attached File Quote
Rolf Kalbermatter Posted April 14, 2013 Report Posted April 14, 2013 Please See Attached File What is the contents of the ZIP_File.zip? The higher level VIs that extract the entire archive to a directory would be a good place to see how these VIs should be called. Quote
ManWithNoName Posted April 15, 2013 Author Report Posted April 15, 2013 The ZIP archive contains only one file (an ini file) which has been previously compressed with the ZLIB Compress Vi Quote
ManWithNoName Posted April 15, 2013 Author Report Posted April 15, 2013 (edited) 1) ZLIB Get File 2) ZLIB Read Compressed File Block : Error seems come from the "Open/Replace File" Vi Could you explain me how permissions input works ? Regards Edited April 15, 2013 by ManWithNoName Quote
Rolf Kalbermatter Posted April 15, 2013 Report Posted April 15, 2013 It might be more helpful if you post both the zip file you want to extract and the code you created. Debugging from screen shots is feels so awkward that I simply refuse to spend any time on that. Also make sure to post any VIs in 2011 or earlier. I don't have at the moment always access to a machine with 2012 installed. One thing I see however is that you pass in the application directory to the target path. This should be the file path of the file you want to create! And if the filename is the same as the one in the ZIP archive (but watch out here as paths in an archive can be relative paths defining several directory levels) then you do not need to connect the internal name at all, as it will be extracted from the passed in target path. If you had posted the VI and ZIP file in the beginning I could have run it and seen the problem immediately. Deducing such things from a screen shot is more difficult since there is no context help and all that available. Quote
ManWithNoName Posted April 15, 2013 Author Report Posted April 15, 2013 (edited) Thanks for your help Rolfk Please See the Attached Vi example I can't join the "example.ini" file here. But you can create one easily !!! Regards Test_OpenG_ZIP_Toolkit.vi Edited April 15, 2013 by ManWithNoName Quote
bmoyer Posted April 15, 2013 Report Posted April 15, 2013 You need to specify the entire extracted file path. Also, you should use a Build Array where you specifiy the file to compress. See attached. Bruce Test_OpenG_ZIP_Toolkit.vi Quote
ManWithNoName Posted April 15, 2013 Author Report Posted April 15, 2013 (edited) Thanks Bruce and Rolfk I didn't think that we must specify also the full path and the file name. I have tried one of two method in each case but not all together. Also Thanks for the tip. Best Regards Edited April 15, 2013 by ManWithNoName Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.