If attempting to open a PowerShell window via 'Terminal > Windows PowerShell' from a directory which includes a space, the following error is received in the resultant PowerShell window:
Set-Location : A positional parameter cannot be found that accepts argument '[path\after\space\.]'.
At line:1 char:1
+ Set-Location -Path [path]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Location], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
I think the solution is to change the command 'Set-Location -Path [path]' to the following with the path enclosed in quotation marks:
If attempting to open a PowerShell window via 'Terminal > Windows PowerShell' from a directory which includes a space, the following error is received in the resultant PowerShell window:
I think the solution is to change the command 'Set-Location -Path [path]' to the following with the path enclosed in quotation marks: