The command line is still a powerful thing to use in Microsoft Windows. You may need to learn how to create a directory from the command line if you’re writing a script, or want a simpler way to create multiple folders. Here’s how it’s done.
- Select the “Start” button,type
cmdthen choose “Command Prompt” in the list that appears.
- To switch to another drive, simply type the drive letter followed by a colon, then press “Enter“.
- To switch to another directory, type cd followed by the path to the directory, then press “Enter“.
mkdirfollowed by the name of the folder you wish to create, then press “Enter“.
Creating multiple folders is easier from the command line. You can type mkdir followed by the names of each folder, separated by a space to do this.
mkdir mynewfolder1 mynewfolder2 testfolder1
Note: Alternately, you can use the md command in place of mkdir. They do the same thing.