LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI to display folder contents

Hi,

 

I am trying to view the contents inside a particular folder structure. I have managed to do this using the list folder vi. Based on the folder I then select I want to display the contents of that folder.

 

Example: Display contents of C:/ECU. This folder could contain folders with names like ECU1, ECU2 and ECU3. When I select any of these folders I then want to display the folders contained inside but Im not sure how to do this. Any ideas?

 

Thanks

John

0 Kudos
Message 1 of 5
(3,167 Views)

Use BuildPath to create C:\ECU\ECU1 from C:\ECU and ECU1…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,155 Views)

Just use another List Folder.  What is your ultimate goal here?


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
0 Kudos
Message 3 of 5
(3,145 Views)

Hello,

 

I maybe should have given an overview of what im wanting to do here. So firstly I need to be able to select a folder from a list under a certain file structure. I need to zip any log files inside this folders which have the folder name "logfile". Next I need to select a location to copy this folder and its contents to. Could u help me with this?

 

Thanks

John.

0 Kudos
Message 4 of 5
(3,134 Views)

See how far this gets you.  I just made a simple path control and a button to save the data in the folder to a zip file.


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
0 Kudos
Message 5 of 5
(3,126 Views)