03-31-2020 06:02 AM
Hi all,
In one project (on Windows) I have a button which the operator can press to open the target data folder, and also store the path to the clipboard so it can be refered to easily. Fine. Originally (in LV 2014 and older) I created a string with "explorer<space>" followed by the path as a string, and pass that into System Exec.vi. Great, it opens the folder in Explorer every time.
Now updated to LV 2018 and I see that we have a native 'Show in File System.vi' which ought to do the same. However, when passing a folder name the explorer window open at the parent level folder, with the named folder shown as a selected item in the right-hand-side.
Is there a way to actually show the content of the target folder like I can by calling Explorer through a System Exec? The target folder may be empty, so I cannot even refer to a file within the folder.
The attached VI shows both modes of operation.
Thanks, and stay safe out there...
Ian
03-31-2020 06:15 AM
09-18-2024 03:53 PM
Hey, I found a work around for this. Might need some error trapping in case the first VI returns an empty array. Tested in LV2018.