How to create folders and directories from CMD in Windows

The Windows command terminal is a very useful tool when you want to perform modifications or functions as an administrator . Including the opportunity to create folders and directories from CMD, as well as to send messages to other Windows computers on a network .

Despite being used mainly by those who have knowledge of the programmatic language on which the Windows operating system is based, many users resort to this function to perform a specific task.

Since it is directly related to the administrator permissions that make up Windows, it could be said that no modification is considered impossible .

Although within the directories you can create all the files that the user wants, some choose to create folders from CMD due to its ease and benefits. Others, just for customization and user taste, choose to change the color of the Windows CMD console .

That is why if you are trying to learn one of the different operations that can be handled from the terminal, keep reading this article to discover how to achieve it.

What is the command to create folders from CMD?

Although there are several standard options through which a folder or directory can be created within the computer, CMD also has a way to achieve this.

Since the result will be the same, having this knowledge is quite useful if you are executing an action within this tool and you need to create folders from CMD. Avoiding wasting time between different windows to do it manually.

Therefore, to start with this function, it will be necessary to open CMD with administrator permissions and thus be able to write the commands in the CMD necessary to create a folder.

The key command to do this is recognized as ” MD ” and is the one that performs the same function as when you press “Create a folder” within the directory menu.

But for that very reason the command does not end there. Well, we clearly mentioned that folders are created in a specific destination or directory, and the terminal is no exception.

So accompanying the “MD” command must be the address where the folder or directory that will be in charge of containing it and its title is located .

A clear example is when you want to create a folder from CMD within the local disk, which is recognized as “C: \”. The folder itself will be in charge of containing the files that are downloaded from Softonic.

Inside the terminal you must write the beginning of the command, accompanied by the recipient and the name that the file to create will acquire. That is, as follows:

  • ” MD C: \ Softonic “

By pressing “Enter” you will be able to see how a folder with the name Softonic is automatically created within the local disk. This is empty and fully available to manage files within it.

Create a directory with the command ” MD “

Besides creating a folder from CMD, this command can also be used to create file libraries known as directories, in case you also need one.

The sequence of information is almost the same. The only difference is that each folder to be created is named. For example:

  • ” MD soft1 soft 2 soft2 “.

Hide folders from CMD

Another of the useful functions that the terminal fulfills is to be able to hide the amount of files that we need. To prevent third parties from manipulating them.

In this case, the ” Attrib ” command is the one in charge of giving the order to establish an attribute to a specific aspect. In this case to a folder.

Within the different existing parameters, “H” is responsible for hiding the content and “S” blocks it so that it is read-only and also acquires the system file characteristic.

Since to add the attribute to the folder, the parameter must be accompanied by a positive or negative symbol, the command would be as follows:

  • ” Attrib + s + h C: \ Softonic “

In this way, in addition to creating and deleting folders like a professional programmer , you have also protected their content, all with total comfort and following these simple steps.

 

Leave a Comment