On Wednesday, 24 September 2014 at 10:28:05 UTC, Suliman wrote:
dirName gives the directory, baseName the filename, stripExtension strips it, so seems like what you want isstring 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?
dirName ~ stripExtension( baseName )