Not guaranteed to work on non-Windows (Posix does not unify this).
```d
void main(string[] args) {
import std.process : browse;
import std.path : dirName;
browse(args[0].dirName);
}
```
Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn Sat, 28 Dec 2024 17:16:45 -0800
Not guaranteed to work on non-Windows (Posix does not unify this).
```d
void main(string[] args) {
import std.process : browse;
import std.path : dirName;
browse(args[0].dirName);
}
```