Usage: wd DIR CMD [ARGS]
> pwd
/foo
> wd bar pwd
/foo/bar
On Linux:
> cd linux
> make install
On Windows:
> cd windows
> msbuild
Why you use _spawnvp
on Windows instead of _execvp
like execvp
on Linux?
_execvp
on Windows works like that overlays a calling process with a new process and that destroys the calling process. The new process runs in background.