How to execute mkdir from the run command

Posted on 2012-09-10
Last Modified: 2012-09-15
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.
Question by:thandel
    LVL 6

    Expert Comment


    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:

    Author Comment

    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.
    LVL 12

    Assisted Solution

    try prefacing the command with cmd:

    cmd mkdir

    Author Comment

    That just opened a cmd window at a prompt without any execution of a command.

    Accepted Solution

    I've got it:

    cmd /c "mkdir c:\test"
    LVL 9

    Expert Comment

    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.

    Author Closing Comment

    solution found

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    I wanted to pass this along in case anyone has a problem removing a device from the Device Manager, or if you suspect a corrupted Driver that you want to remove in its entirety. I know it is kinda lengthy and very basic in its format, but I figured …
    Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now