Nowhere near as elegant as Structure - but Windows already has a command
(XCOPY) that will let you do that.
Syntax is: XCOPY source destination /T /E
/T = Copy directory and subdirectories but exclude the actual files
/E = Include any empty subdirectories
So if I had a directory on the C-drive called Library
, and I wanted to make a copy of its structure in a new directory on the D-drive and call it EBooks
the following would do that:
XCOPY c:\Library d:\EBooks /T /E
To get something like templates, you could always create a directory of all your standard folder structures and do an XCOPY of those.
Again, not very pretty, but very efficient. When we needed to clone multiple empty data directories to 50 new business workstations at a time, this was how we used do it. (Actually, it was scripted and a little more involved than that - but it still
If you're using Windows 7, the XCOPY command has been superseded by Robocopy
Robocopy is XCOPY on steroids. Command syntax is similar to XCOPY (i.e. command source destination
/options) with some big differences in the option names. For the above example, the robocopy command would be:ROBOCOPY c:\Library d:\EBooks /E /NOINFO
Robocopy will also work under Windows XP, but you'll need to download
it (as part of a resource kit) from Microsoft since it's only gets included with Windows 7. Fortunately, you don't need to resort to the command prompt.
If you're using Windows XP or later (or you'd just prefer having a GUI to work with) download a copy of RichCopy
from Microsoft. On the options page, you can tell it to just copy the directory structure. Structurer for Windows?
The included help file will tell you about all the other
nifty things this powerful little utility can do. Give it a look when you get a chance. Very 'cool tool.'
Note: if you're running the 64-bit version
of Win7, there's a free 3rd-part 64-bit GUI that uses the Robocopy engine and works much like RichCopy. It's called rbcSYNC
and it's published by Steitz IT Solutions. Download a copy here