From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open Folder to Browse (aka, Open windows explorer to known folder)

Solved!
Go to solution

Hi guys,

 

This must be pretty trivial, but I can't find a way to do it.

 

I just want to add a button on my vi, which opens up a folder to browse at a known path. 

 

So lets say I generate reports into the following folder, c:\Temp, I wanna click on a button and it'll open up the Temp folder for browsing as though I went Start->run->C:\Temp

 

 

0 Kudos
Message 1 of 6
(4,460 Views)
Solution
Accepted by topic author markza

Use an event structure to look for the button press. In the event use something like the following:

 

open folder.png

 

Ian

Message 2 of 6
(4,458 Views)

Hi markza,

  For the functionality you desired with a button,you need to create an xcontrol.

 

Thanks and regards,

srikrishna

Regards,
Srikrishna


0 Kudos
Message 3 of 6
(4,452 Views)

Thanks Ian, should've thought of that, works like a charm.

 

 

 

 

0 Kudos
Message 4 of 6
(4,445 Views)

Capture the button press & place the "File I/O>>Advanced File Functions>>File Dialog" in that event case. Wire the desired path as the start path.

0 Kudos
Message 5 of 6
(4,431 Views)

No, Ian got it right hence why I marked this as solved a few hours ago.  

 

I dont want to get a path to a folder to use in Labview (if so I would have use a file dialog like you suggested), I wanted to purely open a folder in Wnidows as though I'm using explorer - thanks Ian.

0 Kudos
Message 6 of 6
(4,427 Views)