Hello, this is IT Doctor HO.

Today, Set-Location: A positional parameter cannot be found that accepts argument 'Files'.

Let's look at the error.





PS C:\> cd Program Files

Set-Location: A positional parameter cannot be found that accepts argument 'Files'.

PS C:\> cd..

PS C:\> cd ProgramFiles

Set-Location: Cannot find path 'C:\ProgramFiles' because it does not exist.

PS C:\> cd 'Program Files'

PS C:\Program Files>

'I need to write this.

You should write 'program files' instead of 'program files' to avoid errors.

Therefore, you need to use a form of quoting in order to pass a value that contains spaces as a single argument.