How to detect current executable file name?
Jacob Carlborg
doob at me.com
Sun Feb 17 23:32:05 PST 2013
On 2013-02-18 04:28, eGust wrote:
> I need to locate the directory of current executable file, but I can't
> find how to do that in Phobos. I tried core.runtime.Runtime.args[0], but
> failed. Is there a standard method of Phobos to do that? I only know the
> way of Windows (GetModuleFileName), but I think as a common task there
> should be a platform-independent way to get it in the standard library.
http://www.dsource.org/projects/tango/attachment/ticket/1536/process.d
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list