Remove filename from path

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 24 03:28:05 PDT 2014


>> string path = thisExePath()
>
> Seems like "dirName" in std.path is a good candidate ;)
> http://dlang.org/phobos/std_path.html#.dirName
>
> You'll find many other path manipulation functions there.

Thanks! But if I want to strip it, how I can cut it?


More information about the Digitalmars-d-learn mailing list