How to create new directory in cmd

To create a new directory in the Command Prompt (Cmd), you can use the following command:

mkdir <directory_name>

Replace <directory_name> with the name you want to give to your new directory.

For example, to create a directory named "MyNewFolder", you would type:

mkdir MyNewFolder

Press Enter to execute the command, and the directory will be created.

If you want to create a directory in a specific location, you can specify the path along with the directory name. For example:

mkdir C:\Users\YourUsername\Documents\MyNewFolder

This will create a new directory named "MyNewFolder" inside the "Documents" folder, which is located in the "C:\Users\YourUsername" directory.

Note: If the directory already exists, the mkdir command will not create a new one and will instead display an error message.