LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

zip file problem

Hello All

 

The attached vi is giving me a headache....why.

 

The vi searches a file path for any zip files and if present will list in two arrays both any files by name and any folders by name contained in the zip file (or so my theory goes)

 

The two zip files differ, with one containing csv files (only) and the other xml files and folders containing xml files, but when run I get an error (13) saying that the file is not a Labview resource file.

 

Can anybody help with this please......why is this error occuring.

 

Thanks in advance

 

Regards

Ray

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

Hi rayclout,

  Why are you using a while loop and placing that List Folder function inside it...Remove it and try..

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 5
(2,543 Views)

makes no difference with the while loop there or not

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

Hi rayclout,

 

You are trying to list the files which inside a zip files, im not sure we can do that.

and "List folder" will list the the files and folders which available in the folder path you given not from zip file.

 

To list the files inside zip files ->Unzip the zip files to a temp directory, then read all the files inside the temp directory using "List folder" then clean up by deleting the temp directory.

 

Note: No need to use while loop. also i suggest you go through LV basics documents.

Message 4 of 5
(2,518 Views)

Thanks GK

 

Your tips did the trick. I was able to get it functioning.

 

Regards

Ray

0 Kudos
Message 5 of 5
(2,499 Views)