Quick Tip: Directories from the Command Line

Have you ever needed to make some directories with subdirectories in a hurry? You might not want to have to open the folder, right click, choose ‘New Folder’, highlight it, rename it, and repeat. Well here’s a quick tip that you can use from the command line, and will also check to see if the directories exist!
Here’s how to do it:
- Go to the command prompt (click start->run->type “cmd.exe”)
- Type (without quotes) mkdir -p a\b\c\d
What this will do is make a directory called “a”, and inside that directory it will create “b”, and so on and so on. If the directory already exists, it will give you an error message, but still make the ones that aren’t there.
Don’t forget, if you’re going to have spaces in a name, enclose it with quotation marks.
Stay tuned for more.
multiple directories, sub directories, mkdir, tips, new folders, quick, quick directories
Leave a Reply