The program is bigger that I expected (I've over-documented as usual) so I've loaded it to AutoHotKey.net. You can download it (source code) from here: Create Folders.ahk
Here's a screenshot:
The program is not very useful unless the desired working directory is passed as a parameter to the program. For me, a Windows Explorer context menu that runs the program works the best. I created the following registry changes to install a "Create Folders" context menu item. Be sure to make the necessary changes to reflect your environment before running.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\CreateFolders] @="&Create Folders..." [HKEY_CLASSES_ROOT\Directory\shell\CreateFolders\command] @="\"C:\\Program Files\\AHK\\Create Folders\\Create Folders.exe\" \"%1\""
If you're not familiar with registry changes, simply store this code in a file with an extention of .reg and then double-click on the file to have Windows merge the changes into the registry. Don't forget to make the necessary changes to reflect your environment before running.
With the context menu item installed, simply right click on the desired folder in Windows Explorer, select the "Create Folders..." menu item you just installed, and you're on your way!
To uninstall the "Create Folders" context menu, simply remove the parent key from the registry:
Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\Directory\shell\CreateFolders]
For the most part, the program should be self-explanitory but be sure to read the documentation in the source code to get the full load. I hope someone finds the program useful.