Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Command Prompt - Windows 11, 10, etc. ► ««« »»»

How to create at once several subfolders levels (commando-line)?


Via Command Prompt is to easy to create at once, several sub folders levels in every Windows Desktop 10, 11, ... and MS Server OS?




MKDIR is suitable for Windows 11, 10, 8.1, 7, ... to XP and Microsoft Server 2019 to 2000, it also doesn't matter if you connect MHDIR to a Windows desktop, tablet, Surface Pro / Go, or even to a server use the operating system.


Content / Info / Tips:

1.) ... Easily create directories with the cmd.exe!
2.) ... Create a folder with several subfolder levels!
3.) ... Deletes all directories with all subfolders and files!
4.) ... Do not be confused by the folder item terms!
5.) ... Advantages and disadvantages of the Create Directory command!




1.) Easily create directories with the cmd.exe!

Here is a simple example with 2 subdirectories (Folder1, Folder2) for each folder a separate command!


C:\Users\Nenad\Desktop>mkdir C:\1\Folder1

C:\Users\Nenad\Desktop>mkdir C:\1\Folder2

C:\Users\Nenad\Desktop>cd c:\1

c:\1>dir
Volume in drive C has no label.
Volume Serial Number is 2AAE-9CF6

Directory of c:\1

05/23/2018  08:46 AM    < DIR>          .
05/23/2018  08:46 AM    < DIR>          ..
05/23/2018  08:46 AM    < DIR>          Folder1
05/23/2018  08:46 AM    < DIR>          Folder2
04/26/2018  03:47 PM    < DIR>          Meine_Freigabe
0 File(s)              0 bytes
5 Dir(s)  16,556,134,400 bytes free

c:\1>

2.) Create a folder with several subfolder levels!

Please start the Windows Command Prompt [Windows-Logo+R] and enter the command CMD.exe 
In Command Prompt use the windows make directories command 

For Example: (... see Image-1) 
MKDIR C:/Level1/Level2/Level3/Level4/


(Image-1) Create at once several sub folders levels in all Windows OS!
Create at once several sub folders levels in all Windows OS!
-
▲ Back to the top ▲


The help file for windows MKDIR command!



Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator\Desktop>mkdir /?
Creates a directory.

MKDIR [drive:]path
MD [drive:]path

If Command Extensions are enabled MKDIR changes as follows:

MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:

mkdir \a\b\c\d

is the same as:

mkdir \a
chdir \a
mkdir b
chdir b
mkdir c
chdir c
mkdir d

which is what you would have to type if extensions were disabled.

C:\Documents and Settings\Administrator\Desktop>

3.) Deletes all directories with all subfolders and files!

The command RMDIR or shortened version RD can be used to delete individual directories or directories with subdirectories.

Here in the example, the message appears in the prompt message that the directory is not empty. If you are sure that the full content directory should be deleted, simply use /s as an additional parameter . (see example)

ColorConsole  [Version 2.5.1001 ]
Microsoft Windows [Version 10.0.17134.48]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\Nenad\Desktop>rd C:\1
The directory is not empty.

C:\Users\Nenad\Desktop>rd c:\1 /s
c:\1, Are you sure (Y/N)? y

C:\Users\Nenad\Desktop>


4.) Do not be confused by the folder item terms!


Different identifiers for one and the same thing here's a quick overview.

Directory = folder
subdirectory = subfolders = Sub-folder = sub-directory
folder structure = directory structure
folder tree = Directory tree
cmd.exe = command prompt

A directory or folder Creating the command prompt is really easy and suitable for Windows 11, 10 , 8.1, 8, 7: Pro, Home, Enterprise, Basic, Premium, Professional, Starter, Ultimate, Windows-Server 2019, 2016, 2012, and older Windows operating systems.

5.) Advantages and disadvantages of the Create Directory command!


The Create Directory command (or mkdir in Windows) has several advantages and disadvantages:

Advantages:

Ease of use: The command is easy to use and requires only a few parameters to create a directory.

Efficient: It allows quick creation of directories without a graphical user interface.

Automation: By using commands, directories can be created automatically in scripts or batch files, making it easier to automate tasks.

Flexibility: You can create directories with any name and path as long as you have the necessary permissions.

Disadvantages:

Error prone: If you accidentally enter the wrong path or name, you could create a directory in an undesirable location or overwrite an already existing directory.

No visual confirmation: Unlike the graphical interface, there is no visual confirmation that the directory was created successfully, which can lead to uncertainty.

User Knowledge Required: Using commands requires basic knowledge of the command line interface, which may be a hurdle for beginners.

No interactive selection: Unlike the graphical user interface, the command does not allow you to interactively select or browse directories.


Overall, the Create Directory command provides a quick and efficient way to create directories, but may not be as user-friendly as the graphical interface for beginners or less technical users.


 
In Windows, you can create a new directory (folder) using the Command Prompt or PowerShell using the mkdir (for "make directory") command.
 
Here is the syntax for using the mkdir command:
 

mkdir path\to\new\directory

 
Example:
 

mkdir C:\Users\Username\Documents\NewFolder


 This command creates a new folder named "NewFolder" in the "Documents" directory of the user "username". You can also use relative paths depending on which directory you are in.
 
 
 

 




FAQ 6: Updated on: 11 March 2024 09:43 Windows
Windows-Console

How to displays all network connections and listening ports?


In some cases well-known and displays all network connections and listening ports on Windows 10, 11, and MS Server Systems If you want to see a list
Windows-Console

Close correctly, the command prompt e.g. cmd.exe!


ALT+F4 or close window button, is not the right solution to close the windows command prompt correctly Content: 1. Right way to close the command Prompt
Windows-Console

How to remove read-only or hidden file attribute via cmd?


To do this, open/start cmd.exe or start the ColorConsole . You can change all file attributes using the Windows command prompt, which also makes sense for
Windows-Console

Taskkill with the Cmd.exe, how to use correct and useful with examples!


The taskkill can be used to end one or more processes in any windows OS. With TASKKILL, processes can be killed by the process id or image name. There are
Windows-Console

Make Windows command prompt wider, how to?


The solution is easy to make the Windows command prompt cmd window wider, to see more of the output text   Content: 1. The new example under Windows
Windows-Console

Long file and folder paths in the CMD prompt (insert,paste)!


If you enter long file or folder paths in the cmd.exe command prompt the solution is very simple to avoid typos errors 1. Solution 1: Using drag
Windows-Console

Start programs with different priority classes, how to do on Windows 10, 11?


You can start programs with a specific process priority via the MS Windows command prompt cmd.exe, with help from the START command Here are the solutions

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. Cmd odrner?
  2. Wondering how to create folders via script as an administrator and standard user on Windows 10 and 8.1?
  3. Create Windows 10 command line?
  4. Create Cwindows console folder?
  5. Cmd commands new folder?
  6. Create a folder with a command line?
  7. Cmd command if folder does not exist to create it?
  8. Cmd command new folder?
  9. Windows Path?
  10. Create a folder structure with Cmd?
  11. Create folders with exe?
  12. Windows mkdir intermediate directory?
  13. Create archives from ordener with console?
  14. Cmd command create folder?
  15. Cmd mkdir?
  16. Cmd Path?
  17. Windows cmd create directory without querying?
  18. Cmd folders?
  19. Create directory per cmd?
  20. How do I create a directory about cmd?
  21. Create a prompt directory?
  22. Cmd folder?
  23. Cmd directory?
  24. Create a windows 10 command directory?
  25. In Windows Console on Windows xp create directories with subdirectories?
  26. Creating a folder tree with command line CMD under Windows?
  27. Create multiple subdirectories with one command in Windows 8.1 or Server 2012?
  28. Create cmd ornder?
  29. Create folders via cmd create directory?
  30. Create cmd directory?
  31. Can one create and delete folders with the CMD?
  32. Create folders from command line?
  33. Cmd.exe create new folders?
  34. Creating folders in the cmd?
  35. Create folders dos md?
  36. Windows create multiple folders at once make directory?
  37. Cremte Directory remotely?
  38. Enable Mkdir command extension prompt?
  39. Using batch file to automatically create directory with cmd.exe?
  40. Mkdir command extension enable prompt?
  41. Create a directory in cmd?
  42. Cmd ornder?
  43. Cmd create directory?
  44. How to create a folder in cmd?
  45. Create a folder structure windows?
  46. Create folders with cmd?
  47. Create and delete directories not with PowerShell, creating or deleting a directory is with cmd.exe should somehow go to create it in batch files that can then automatically create subfolders, but how?
  48. Prompt to create folders?
  49. Cmd create folders in programs?
  50. In Windows 7, create directories with subdirectories at once?
  51. Window mkdir verezichnis available?
  52. I want to create with the help of a batch file, so only a folder automatically subfolder, is so what?
  53. How to create a folder through the command line?
  54. Windows prompt mkdir?
  55. Create a folder tree with command line CMD on Windows?
  56. Creating directories and deleting not using PowerShell to create or delete a directory is with cmd.exe supposed to somehow go into creating batch files which can then automatically create subfolders, but how?
  57. Create directories with subdirectories in the Windows Console on Windows xp?
  58. Cmd Directory?
  59. Cmd folder present?
  60. Window mkdir verezichnis present?
  61. Create infinite folders via cmd?
  62. Create directory in cmd?
  63. Cmd commands exe create?
  64. I want to use a batch file, so just create a folder that automatically has subfolders, does something like that?
  65. Prompt folder?
  66. Create folders with cmd.exe?
  67. With batch file automatically create directory with cmd.exe?
  68. Cmd Create Folders?
  69. Create multiple subdirectories with a command in Windows 8.1 or Server 2012?
  70. Script to create a script Windows cmd?
  71. Create folder create prompt?
  72. Create directories with subdirectories at once in Windows 7?
  73. Dos create directory?
  74. Create folders with cmd and give it right?
  75. Create folder with cmd?
  76. Create cmd odrner?
  77. Cmd command to create folder?
  78. Windows automatically generate folders cmd?
  79. Can I create and delete folders with the CMD?
  80. Wondering how to create folders via script as an administrator and standard user under Windows 10 and 8.1?
  81. Windows mkdir create intermediate directory?
  82. Cwindows console create folders?
  83. Commands create command prompt directory?
  84. Windows Explorer to create new folder with bat file?
Keywords: windows, 11, 10, server, eleven, command, prompt, create, several, subfolders, levels, server, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + GetPixelColor
  + StressMyPC
  + DesktopSnowOK
  + Delete.On.Reboot
  + IsMyTouchScreenOK
  + Print.Test.Page.OK
  + OpenCloseDriveEject
  + ColorConsole
  + IsMyLcdOK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► How to enable the password prompt for screen saver in Windows 8.1 (disable, turn off, turn on)? ◄
► Can I use the picture reduction tool on Windows 11? ◄
► The stopwatch window menu is annoying when the clock is reduced! ◄
► Can you download Chrome for Windows 10! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....