Finding the path to a executable?
evilrat
evilrat666 at gmail.com
Tue Aug 6 23:22:24 PDT 2013
On Wednesday, 7 August 2013 at 06:18:26 UTC, Alan wrote:
> Believe me I have tried all sorts of combonations of this but
> it's not guarunteed accuracy in certain situations, I thought
> there would be a solution in phobos library I was missing but
> maybe I will have to write something complex out.
> Thanks for all the help so far!
putting all together try this(not tested)
import std.path;
void main(string[] args)
{
writeln(absolutePath(buildNormalizedPath(args[0])));
}
More information about the Digitalmars-d
mailing list