PDA

View Full Version : directory related question



abrou
18th April 2008, 18:43
Hey, here's a question, which should be quite simple.

I want to find the path of the directory relative to the program .exe file.

For example, my application that I made might be called "sample.exe" in the folder "sample".
In the folder "sample", is another folder named "sample saves". I want to find the path of "sample saves" relative to "sample.exe". I know there should be a way to find that, but I can't figure out how.

I do not always know there the file "sample" is.

Thanks again!

wysota
18th April 2008, 19:34
QCoreApplication::applicationDirPath()