Jump to content

Can I open a folder using LV


Recommended Posts

Posted

Hi,

I am relatively new to LV 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.

Posted

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.

2008-09-05_1652.png

yup... that works.

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.