I need to find a way to retrieve the folder in which my executable is. Since it is a service, the
Poco::Path::current()
returns the current working directory which is the system directory for Windows and the root directory in Linux.
I need to find a way to retrieve the folder in which my executable is. Since it is a service, the
Poco::Path::current()
returns the current working directory which is the system directory for Windows and the root directory in Linux.
It might be a bit of a pain to pass around your program, but argv[0] in your main() should hold the executable's path.