Link to home
Start Free TrialLog in
Avatar of SeanNij
SeanNijFlag for South Africa

asked on

Copy Folder names and not the contents

Hi all,

I have a folder on a server that has a couple hundred subfolders in it, with files in those subfolders.

Now i want to create another folder but with the same subfolders in it - BUT WITHOUT the files.

I dont want to retype all the folder names - is there a way to copy the structure only??

Thanks
Sean
ASKER CERTIFIED SOLUTION
Avatar of SheharyaarSaahil
SheharyaarSaahil
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try it this command from command prompt :

c:\> xcopy /E /T "C:\test\fold1" "C:\test\fold2"

fold1 : your existing folder
fold2 : your new folder to be created.