Ok after some investigations, the sys.currentdir
works as expected but it's limited to the current process only, as Windows don't have a global current directory.
When starting a new process you can use the Windows start.exe
command using the /d
parameter to specify the working directory for the launched process.
See [Login to see the link]