LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with 'Show in File System.vi' when passing a folder path

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

0 Kudos
Message 1 of 2
(1,740 Views)

Internally, the VI is only calling System Exec anyway.

If you have a working solution, I'd probably just keep to that.


GCentral
0 Kudos
Message 2 of 2
(1,724 Views)