LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

windows folder popup

Solved!
Go to solution

I would like to launch a folder popup from my CVI code.

I tried using LaunchExecutableEx("c:\\data"), but that does not work. Does anyone know how to make a folder popup?

0 Kudos
Message 1 of 3
(3,139 Views)
Solution
Accepted by topic author Steve_Block

Hi Steve,
 
Try  LaunchExecutableEx ("explorer.exe /select, \"c:\\data\"")

To make it enter into the "data" folder you have to write a file's path in c:\data.

So it will be something like  LaunchExecutableEx ("explorer.exe /select, \"c:\\data\\volts.txt\"")

 

I know this method because I use it as a custom tool in CVI Tools menu.

Maybe there is a way of opening the folder without specifying a file name, but I do not know that. 

 

Hope this helps,

 

 

Note to the webmaster: I am sick of these paranthesis turning into smileys. Grrr..! 

Message Edited by ebalci on 03-12-2009 09:52 PM
S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 3
(3,138 Views)
You could also consider using the toolslib File browser, a custom control build on top of a tree control, which has the advantage that you can insert it in a CVI panel instead of opening a separate window. The file browser, as all custom controls shipped with CVI, can be inserted in a CVI panel by right clicking on the panel and selecting Custom controls >> Toolslib controls >> File browser


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(3,114 Views)