Hi!
For compiled EXE my answer is:
Declare String GetCommandLine in Win32API
? JustPath(GetCommandLine())
>How do I find out progamatically what the full path (drive letter/share + directory path) for a given program from within itself?
>I'd like to do this so if I write a program, it sets it's default directory to it's own path, opens a table that has path variables for a number of different files it will be using on different parts of the network, without the need for hard wiring the original default directory in it's own path. That way, I can move it to another path without worrying about having to re-hardwire it every time I move it.