get start up path

is there a way to get the directory in which the executable started?

i found Application.StartupPath but don't know how to use it... should i include sthg?

any advice?

thnx!

ps: i'm working on windows :)
getwd on POSIX, or GetWorkingDirectory on Windows.
Just to be sure, are you asking where the user started your program?
Or are you asking where the executable is on disk?
Quite right. My post above is for the current directory.

The full path is often pass in as an argument to main, but as I found recently, not in Windows unless you passed the full path name when running it.
I'm not asking you. ;-)
I'm asking rompecabezas. He could be asking how to find his executable.
Topic archived. No new replies allowed.