Hello, I would like to know if there is a pragma that can tell the working directory for the current file. I know that there is a defined macro called "__FILE__", which returns the source's filename with path. But is it possible to get only the directory without the file's name?
Ex: "C:\MyFolder\File.cpp" would return "C:\MyFolder"
I know I can probably solve this using substrings with a String class, but in my case I have to use it for a #define.
Thanks!



LinkBack URL
About LinkBacks



I know I can possibly set this in the project's options, but I'd like to have it directly in a file, so I would never forget to change options when I start a new application with the same sources....
CornedBee