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?
1 Answer
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
3 Comments
Rahul Tripathi
@a_horse_with_no_name:- That is probably a good alternative too. I faced a similar situation in the past so I recommend that.!!!
Rahul Tripathi
@a_horse_with_no_name:- Updated my answer with your suggestion :)