0

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'.

2
  • Quotes worked, thank you! Commented Oct 8, 2014 at 7:19
  • I see you're kinda new here. Don't mark the title with "Resolved", "Solved" or similar modifiers. I will put my comment into an answer and you can tick the check mark next it to mark it as the accepted answer. Commented Oct 8, 2014 at 7:24

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.