Finding the path to a executable?

Andre Artus andre.artus at gmail.com
Tue Aug 6 23:32:39 PDT 2013


On Wednesday, 7 August 2013 at 06:22:25 UTC, evilrat wrote:
> 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;

import std.stdio;

>
> void main(string[] args)
> {
> writeln(absolutePath(buildNormalizedPath(args[0])));
> }

Works for me.


More information about the Digitalmars-d mailing list