Finding the path to a executable?

Alan alanpotteiger at gmail.com
Tue Aug 6 23:32:46 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;
>
> void main(string[] args)
> {
> writeln(absolutePath(buildNormalizedPath(args[0])));
> }

I suppose that could work with a few modifications for
consistency.
THanks for the help everyone!


More information about the Digitalmars-d mailing list