E.g.: import std.process; system(r"cd C:\newfolder"); // no effect It just stays in the same folder as the exe. I can use SetCurrentDirectoryA as an alternative, but why doesn't it work via the system call?