Erkin
Erkin

Reputation: 67

Powershell Changing Directory

Ok i have very basic question and stackoverflow struggles me with formatting. I tried several links for changing windows powershell directory to another one but it always gives error like in this link;

enter link description here

Primarily this:

Set-Location -Path C:\Program Files

produces

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

Upvotes: 0

Views: 178

Answers (1)

Mike Zboray
Mike Zboray

Reputation: 40818

There are several different errors there. I think the main thing you are missing is that if the path has a space, you need to put quotes around it. Either single or double quotes will work.

Upvotes: 1

Related Questions