mkdir returns The syntax of the command is incorrect on windows
Asked Answered
P

2

9

mkdir is unable to create direcotry

mkdir path/to/dir The syntax of the command is incorrect.

Porker answered 17/10, 2018 at 20:44 Comment(0)
P
42

Use back slashes, like this: mkdir path\to\dir

Porker answered 17/10, 2018 at 20:46 Comment(2)
Windows being windows againFlavine
Alternatively you can wrap the path in quotes, mkdir "/path/to/dir"Foretoken
L
0

Write folder name with command. For example we want to create folder with name of "dummy_folder" then we have to command mkdir dummy_folder

Leucomaine answered 1/8, 2023 at 15:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.