LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the windows folder dialog by LV?like photo as below

Solved!
Go to solution

Hi,

How to invoke the windows folder dialog by LV?

Pls help me to check? Thank you advance.

 

0 Kudos
Message 1 of 7
(3,757 Views)

That is an older style of file dialog.  I'm not sure even Windows offers that anymore.

 

In the File I/O palette >> Advanced File I/O, there is an express VI called File Dialog.  You can set that to select folders only.

0 Kudos
Message 2 of 7
(3,729 Views)
Solution
Accepted by topic author 都会好的

You need to use the SHBrowseForFolder win32 call.  But, as noted on the MS page, it is recommended to use IFileDialog  with the FOS_PICKFOLDERS option for Vista and later.

0 Kudos
Message 3 of 7
(3,712 Views)

 Hi, Matthew

Tks for your relpy, then, I Will  try it  again that according to your advice.

 

0 Kudos
Message 4 of 7
(3,682 Views)

hi Ravens,

Thank you, you shared method i coulde know how to use it.

Have a approach, i would  know how to use LV to invoke Win32 call.

0 Kudos
Message 5 of 7
(3,679 Views)

Hi, 

  May be this is the one you have asked as Ravens said,

file dialog.png

 

Hope it helps!

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 6 of 7
(3,660 Views)

Hi  Matthew,

According to your approach that i can to be achieve it.

Thank you very much.

122.jpg

0 Kudos
Message 7 of 7
(3,644 Views)