1

I'm working on "The Command Line Crash Course", and when I try to run "mkdir temp" in PowerShell (Windows) I get something like "Access to the path is denied", and according to the book http://cli.learncodethehardway.org/book/ex4.html I'm supposed to get something really different. Any ideas?

0

1 Answer 1

1

This could be possibly due to the Access permissions. Try running as an Administrator

You can also use the runas to resolve your purpose.Something like this:-

runas /user:computername\useraccount mkdir thedirtomake\somesubdir\

OR

You can create the directory somewhere where you have write access

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

3 Comments

Running as administrator is not such a good advice. Nada should simply create the directory somewhere where he/she has write access.
@a_horse_with_no_name:- That is probably a good alternative too. I faced a similar situation in the past so I recommend that.!!!
@a_horse_with_no_name:- Updated my answer with your suggestion :)

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.