Windows cannot find "mkdir"

0

1

I was trying to create a folder from a Rainmeter skin which didn't work and didn't even yield an error message. Therefore I pasted the command (mkdir C:\Users\%USERNAME%\Foo) used in Rainmeter into the Execute window (Win+R) and got the error message mentioned in the title. However, when I run it directly from cmd it works fine. If it is the case and mkdir cannot be used from outside the command line, I'd appreciate an approach on how to solve this another way.

FallenWarrior

Posted 2016-09-05T21:37:24.043

Reputation: 133

Answers

5

Since mkdir is an internal command for CMD and not an executable found in PATH, it is only available from CMD. However, you can start a new cmd process and pass the command in as an argument. In the run box you would need to type:

cmd.exe /c mkdir C:\Users\%USERNAME%\Foo

CConard96

Posted 2016-09-05T21:37:24.043

Reputation: 1 161

0

Or, in response to CConard96, you can make a .cmd file in a text editor, then save and run this code.

@mkdir C:\Users\%USERNAME%\Foo

Grizzly

Posted 2016-09-05T21:37:24.043

Reputation: 105

But that isn't really practical, is it? – Scott – 2018-12-24T05:42:27.547