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
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 http://zone.ni.com/reference/en-XX/help/371361K-01/glang/path_constant/
Use the file open vi and have the user select the file to open http://zone.ni.com/reference/en-XX/help/371361J-01/glang/file_dialog/
Write your progam to accept a commandline argument http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364
09-18-2014 07:13 PM
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.
http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364
Thanks a lot!