I am getting an error loading a string that has spaces and I need to pass between double quotes.
Names Default to Here(1);
parameter_A = "this has spaces";
parameter_B = "specific.domain.com";
command = "program -Name \!"" || parameter_A ||"\!" -Path \!"" || parameter_B || "\!"";
write(command );
// outputs the expected:
// program -Name "this has spaces" -Path "specific.domain.com"
add_result = RunProgram(
Executable( "powershell.exe" ),
Options( {"/c", command } ),
ReadFunction( "text" ));
The parameter_A
breaks the execution as it thinks there are more arguments passed. Yet, the command works if I copy and paste the output of write in powershell.
What am I missing?