Friday, February 3, 2017

Create multiple folders with command "MD"

The other day, I was trying to create a folder "SQL Server" but I was missing the quotes, so I issued command "md sql server" in the CMD window, then I used "cd sql server" to change the current directly but failed, with a "dir", I found there were two new folders "sql" and "server" instead of "sql server". If you check the help of the command "md" (I checked with Windows 10), there is no such usage in it. It seems that it is an undocumented and nice feature! If the folder contains space, you just need to double quoted your folder's name such as:
    md "folder 1" "folder 2" 

No comments:

Post a Comment