09-18-2014 03:33 PM
Hello,
I'm trying to open a file with my labview application .exe, so I thought that windows was sending the file path double clicked in explorer as an argument but all I get is the filename of my exe.
Does anyone know how to setup windows or the application to get the filepath double-clicked from explorer which the file extension has been already associated to my exe?
Thanks!
Solved! Go to Solution.
09-18-2014
03:55 PM
- last edited on
04-26-2026
05:33 PM
by
Content Cleaner
I am not sure I understand but I think you want your Labview program to open another file, like a perimeter file?
Have three basic choices.
Hardcode the path with file name into your program https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/constants/path.html
Use the file open vi and have the user select the file to open https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/express/express-input/filedialogblo...
Write your progam to accept a commandline argument https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHdICAW&l=en-US
09-18-2014
07:13 PM
- last edited on
04-26-2026
05:33 PM
by
Content Cleaner
Hello!
the part I didn't know about was the "Pass all command line arguments to application" to activate in the builder, once done, it all works.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHdICAW&l=en-US
Thanks a lot!