I have the following command:
new ProcessBuilder("cmd.exe", "/c", "C:\\erlang.exe", "/S", "/D=C:\\Program Files\\Erlang OTP")
The Erlang is not installed in the specified directory because the path C:\Program Files\Erlang OTP contains whitespaces. I have tried to escape the whitespaces using \, ^, or to wrap the command in double-quotes but it doesn't seem to work.
If I run the same command directly from cmd it works fine. Do you have any idea if it is possible to specify a path that contains whitespaces using /D option?