Generated Powershell code breaks if there is a space in the path
I have generated a Powershell script from inside the transfer options in WinSCP.
The path has a space in it, Market 2, and Powershell keeps breaking at \Market. The white space in the path is the problem. Does anyone know a way around this without having to rename my root directory?
$session.GetFiles("/outbound/*", "C:\Users\Market 2\Desktop\Backoffice\Batch\Crunch\").Check()
The path has a space in it, Market 2, and Powershell keeps breaking at \Market. The white space in the path is the problem. Does anyone know a way around this without having to rename my root directory?