Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1711
  • Last Modified:

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
0
SeanNij
Asked:
SeanNij
1 Solution
 
SheharyaarSaahilCommented:
0
 
ofkrCommented:
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now