Copying the skeleton of folders?

Syringer

Lifer
Aug 2, 2001
19,333
2
71
I have a folder with about 50 directories and 10gb of file in there--but all I want is a backup of just the folder structure without any files in there..is there an easy way to do that?

Only way I can think of now is to dupe the folder, do a search for *.* of the folder..and then manually delete all non-folder files, but since it's a large folder it takes a while, so would there be a way to only do the folders?
 

ForumMaster

Diamond Member
Feb 24, 2005
7,792
1
0
just use xcopy. i believe the attribute /t copies the folder structure. built into windows.
run xcopy /?.
 

Syringer

Lifer
Aug 2, 2001
19,333
2
71
Yup xcopy worked perfectly..

xcopy folder1 folder2 /t /e

the /e part copies all empty folders too