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