Nada Alami
Nada Alami

Reputation: 13

The "mkdir" command in PowerShell

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?

Upvotes: 1

Views: 6518

Answers (1)

Rahul Tripathi
Rahul Tripathi

Reputation: 172418

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

Upvotes: 1

Related Questions