Link to home
Start Free TrialLog in
Avatar of thandel
thandel

asked on

How to execute mkdir from the run command

I am trying to excuted mkdir c:\test from the run command off the start menu however I'm getting "windows can not find mkdir".

This works fine from a command prompt but I'm thinking I have to include a full path to mkdir in \windows or \windoes\system32 but don't know what shell or other executable controls mkdir.
Avatar of aadi369
aadi369

Examples

md test

The above example creates the "test" directory in the current directory.

mkdir "computer hope"

The above command would create a directory called "computer hope", if you want a space in your directory name it must be surrounded in quotes.

md c:\test

Create the "test" directory in the c:\ directory.


Also refer below link for more details:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/mkdir.mspx?mfr=true
Avatar of thandel

ASKER

If I enter the command md c:\test or md "c:\test" windows still errors with "can't find 'md'.

I'm not sure what I'm doing wrong.
SOLUTION
Avatar of Amick
Amick
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thandel

ASKER

That just opened a cmd window at a prompt without any execution of a command.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Create a batch file e.g exp.bat
in the batch file write the command mkdir c:\test
execute the batch file.
Similarly you can also create a vb script file to create a directory.
Avatar of thandel

ASKER

solution found