Jump to content

Retrieve Start Path from File Dialog before opening


Recommended Posts

Hello Everybody!

I wonder if it is possible to retrieve the starting path of the file dialog express vi before running it.

The start path is usually the one opened last time with a file dialog vi instance, but I have not been able to find a way to retrieve it.

Anyone has some ideas?

 

Immagine.png

Link to comment

What I would usually do is to retrieve (or strip) the selected path on exit, and feed it to a FGV, or to the property Browse Options/Start Path of the control connected to the input, or something along this lines. This way I can handle multiple initial paths for different controls in my application. Yes you could convert the express VI to standard VI and modify it, but I wouldn't bother to tamper with it.

Link to comment

Thanks ensegre for the reply,

it is more or less the same approach I am adopting right now. However I would like to avoid to call the file open dialog before knowing the start path, since in some cases (if the start path is not valid anymore) it can freeze the wole application, as highlighted in this thread:

 

Link to comment

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.