LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a tool that removes all VIs not in memory, in a folder and its subfolders

Anybody have such a tool they'd share?
0 Kudos
Message 1 of 5
(2,765 Views)

Would you settle for the invers function i.e. copies all VI's in memory to a new location ?

In LV 7.1 and prior that would be save with options single prompt preserve hierachy

In LV 8.X and forward, create a source distribution with similar settings.

Otherwise, please ignore this post.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(2,762 Views)
Theres a property of application called All VIs in memory. This will give you an array of VI names. Now get all the files in a directory using List Folder.vi, search the array of VIs in memory for each file, if it's not found, delete it.
0 Kudos
Message 3 of 5
(2,755 Views)
That'll work, thanks.
0 Kudos
Message 4 of 5
(2,753 Views)

Also, I was just playing around with this and remembered that there is a VI in the advanced file functions palette called Recursive File List.vi. I think it's new in 8.2, so if you have it you can use it to get filenames for all subfolders as well.

Message Edited by Marc A on 02-27-2007 02:00 PM

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