Norm Kirchner Posted November 11, 2009 Report Share Posted November 11, 2009 I have a feeling that this has been answered, but since the search here sucks worse than ever, I need to ask again. What is the demonstrated/recommended way to pop open a file explorer window to a specific window? I don't want the file dialog to return a selected item, I just want to aid the user in the process of getting to a directory. Quote Link to comment
Ton Plomp Posted November 11, 2009 Report Share Posted November 11, 2009 I have a feeling that this has been answered, but since the search here sucks worse than ever, I need to ask again. What is the demonstrated/recommended way to pop open a file explorer window to a specific window? I don't want the file dialog to return a selected item, I just want to aid the user in the process of getting to a directory. This works for me: On windows obviously, perhaps you can call 'nautilus' on linux or '......' on mac. Ton Quote Link to comment
Black Pearl Posted November 11, 2009 Report Share Posted November 11, 2009 The file dialog function supports a starting path. Felix Quote Link to comment
Ton Plomp Posted November 11, 2009 Report Share Posted November 11, 2009 I don't want the file dialog to return a selected item, I just want to aid the user in the process of getting to a directory. The file dialog function supports a starting path. That is exactly what Norm didn't wanted. Ton Quote Link to comment
Jarimatti Valkonen Posted November 11, 2009 Report Share Posted November 11, 2009 This works for me: On windows obviously, perhaps you can call 'nautilus' on linux or '......' on mac. Ton The other way is to build a command line resembling 'cmd /c start ...', which can open documents and URLs also. The downside is that the parameter '...' is put into command line, so beware. In this case set the working directory and use 'start .', which should open up the current directory. In Mac OS X the command is 'open' and you need to pass a parameter, just like with start.exe. Quote Link to comment
ShaunR Posted November 11, 2009 Report Share Posted November 11, 2009 If you don'y mind using windows API calls, you can also call "ShellExecute" which has a couple of minor advantages over systemexec. 1 Quote Link to comment
asbo Posted November 11, 2009 Report Share Posted November 11, 2009 The other way is to build a command line resembling 'cmd /c start ...', which can open documents and URLs also. The downside is that the parameter '...' is put into command line, so beware. In this case set the working directory and use 'start .', which should open up the current directory. If you prepend start with an at sign, it's the same as calling ECHO OFF before it, so the command won't be printed to the cmd window. The System Exec VI is preferably (if you don't like API) because all you have to do is append your directory to "explorer" and you're set. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.