Easily Create Nested Directories Using MkDir
Creating nested directories using Windows Explorer can be quite tedious. First you have to create the master folder, open it and then create the sub-folder, open it then create another sub-folder… you get the idea. As a quicker alternative, you can use the “MkDir” command line tool to easily create the entire folder structure with a single command.
For example, the command:
MkDir “C:\test1\test2\test3”
Would create “C:\test1” if it did not exist and then create “C:\test1\test2” if it did not exist and finally create “C:\test1\test2\test3” if it did not exist.
This command can definitely come in handy in the event you have to create folder structures quickly. Combine this with the use of the up arrow/OS keys functionality in the command prompt to cycle through the previous commands and you can really save yourself some time.
2 thoughts on “Easily Create Nested Directories Using MkDir”