1

When I type in "mkdir -p" windows powershell spits out that the parameter p cannot be used because it is ambiguous, any idea what I am doing wrong?

Thanks

4
  • Are you providing a valid path name?
    – rrirower
    Dec 19, 2014 at 13:45
  • I'm following a course; link and cannot work out why mkdir -p won't run. I checked I was home, changed the directory to temp and then typed in mkdir -p i/like/icecream and got the error Dec 19, 2014 at 13:48
  • What version of Powershell?
    – rrirower
    Dec 19, 2014 at 14:04
  • Windows PowerShell Version 4.0 Dec 19, 2014 at 14:16

1 Answer 1

1

try to runs as an alias, -p is ambiguous because it could be either of the -Path or -PipelineVariable arguments for New-Item.try below

mkdir -path Home\first\second

it will may be work..

1
  • Thank you, it seems to have worked that way! I would however like to discover whether this error occurs with everyone (in which case, should the sites' instructions be changed) or just me. Dec 19, 2014 at 14:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .