LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve path to exe

I'm looking to get the path to the exe of the program at runtime. I was using GetDir but that gets the current working directory which is not always where the exe is located.

Thanks
Tyler
0 Kudos
Message 1 of 3
(3,274 Views)
You can use GetProjectDir () which in case of an exe returns the directory of the program itself.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,268 Views)
Interesting name, I was wondering what that did.

Thank you
Tyler
0 Kudos
Message 3 of 3
(3,266 Views)