LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our General Code Repository Files. Also, before posting here, check to see if your post doesn't fit into another subforum by category.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Can I open a folder using LV, Help Request
Tredlyn
post Sep 5 2008, 09:22 PM
Post #1


I've come back for more.


Member
Posts: 2
Joined: 18-June 08
Member No.: 11794
Using LabVIEW Since:2008
LV:8.5.1 ,. ,.
us_pennsylvania Nothing Selected Nothing Selected


Hi,

I am relatively new to LabVIEW and wasn't able to find a way of doing this on my own: At the end of an App that I have written I want the user to be able to open the folder to which all of his output files were saved. How can I do this? Thanks in advance.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Sep 5 2008, 09:22 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Norm Kirchner
post Sep 5 2008, 09:54 PM
Post #2


Extremely Active
****

Premium Member
Posts: 595
Joined: 8-December 03
From: Dallas, Texas
Member No.: 208
Using LabVIEW Since:2000
LV:8.6 ,8.2.1 ,7.1.1
United States us_texas us_ohio My Gallery


I can't say specifically how to do it, but I know there is no native way in LabVIEW to accomplish this.

What I would expect the answer to be, is that you will call the SystemExec command (executes command line operations) to some component of ....
wait... this is easier than I'm making it out to be.



yup... that works.
Just call that at the end of your program w/ the appropriate path worked into the end of the string.

--------------------
Norman J. Kirchner Jr.
Automation Software Engineer

~,~ The Captain Was Here
Premium Blend


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
mross
post Sep 5 2008, 10:05 PM
Post #3


Very Active
***

Premium Member
Posts: 217
Joined: 31-January 03
From: Wilson NC USA
Member No.: 48
Using LabVIEW Since:2001
LV:8.5 ,. ,.
United States us_north_carolina Kiribati


You can execute a windows commands using the SystemExec vi. If you give it the string:

run c:\

You will get and explorer window of C:\
There are variuos obscure commands and syntax that will cause the explorer window to look certain ways, such as with the folder tree present, and so on. I don't have a reference for you on that, but knowing about it should help.


So assemble a string that does what you want and wire it to the SysExec vi and you are good to go.

Mike

--------------------
Michael E. Ross
Senior Design Engineer
Standard Motor Products, Inc.
2717 Commerce Road
Wilson, NC 27893
mross@smpcorp.com
252.234.5821


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
crelf
post Sep 6 2008, 05:25 AM
Post #4


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3750
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


QUOTE (Tredlyn @ Sep 5 2008, 05:22 PM) *
At the end of an App that I have written I want the user to be able to open the folder to which all of his output files were saved.

Feed the path into "Open URL in Default Browser.vi"
Attached Image

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Tredlyn
post Sep 8 2008, 03:22 PM
Post #5


I've come back for more.


Member
Posts: 2
Joined: 18-June 08
Member No.: 11794
Using LabVIEW Since:2008
LV:8.5.1 ,. ,.
us_pennsylvania Nothing Selected Nothing Selected


Thanks a lot.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 1st December 2008 - 10:56 PM