From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application Command Line Arguments get file path from windows explorer

Solved!
Go to solution

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.

Capture.PNG

 

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!

0 Kudos
Message 1 of 3
(2,871 Views)
Solution
Accepted by topic author JimChretz

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

========================
=== Engineer Ambiguously ===
========================
Message 2 of 3
(2,864 Views)

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!

0 Kudos
Message 3 of 3
(2,844 Views)