ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get File path from running exe file

Hi
I need a vi that can receive the filepath information from a running
application in windows, maybe this a winapi call, like the winutil toolbox,
can anyone help me??
Esben
0 Kudos
Message 1 of 2
(3,055 Views)
Hi Esben-

There is a SDK funciton, GetCurrentDirectory, that should help. It is pretty self-explanatory. I'm not sure how you are going to access a running exe, through other SDK calls? That might be tricky, be careful. I would just embed the GetCurrentDirectory inside the exe itself or have another program launch your exe for you and return the current directory. Jsut some ideas.

good luck-
ben schulte
national instruments
0 Kudos
Message 2 of 2
(3,055 Views)