LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

list folders in zip file

Solved!
Go to solution

Hi

 

I want to list the files and folders inside a zip.

 

I read one post that suggested extracting everthing to a temp folder and then cleaning.  This is very slow and I only need two small files.

 

I have also been searching for a suitable dos command. 

 

Anybody with any ideas on this?

 

Thanks,

Sean

0 Kudos
Message 1 of 5
(2,807 Views)

Hi Sean,

 

use one of the freely available ZIP command line tools to list the contents of a ZIP file. Using LabVIEW's SystemExec you can get that to parse the list...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,803 Views)
Solution
Accepted by topic author SeanJ

Thanks Gerd,

 

I wanted to avoid having to deploy more tools for installation.  There's PKZIP for DOS and ZIP for cygwin.

 

Anyway, there is a simpler solution.  Use labVIEW's unzip vi and select preview.

 

S

0 Kudos
Message 3 of 5
(2,797 Views)

It can be done with .net

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 5
(2,647 Views)

@paul_cardinale wrote:

It can be done with .net


While we are resurrecting old threads, I use 7zip.  I have not tested the command line with the latest update, but it is fast and quite simple.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 5
(2,642 Views)