?
Solved

Copy (Reproduce) Directory Structure Only - No Files

Posted on 2004-11-12
2
Medium Priority
?
240 Views
Last Modified: 2008-03-17
We have a desire to copy the directory structure *only* for a given directory, but none of the files.  The method needs to be scriptable (DOS command, VBscript, executable?) - No GUI tricks.

In other words, I have a directory that contains other directories and files.  I want to duplicate the directory structure/hierarchy of that folder in another location without bringing the files along with.

What is the easiest way to do this?  Is there a way to do it in Windows (2000) without third party addons?  VBscript?  Examples?

A batch file or VBscript would be preferred, although a small third-party executable would be okay.
0
Comment
Question by:hendridm
2 Comments
 
LVL 97

Accepted Solution

by:
Lee W, MVP earned 1200 total points
ID: 12566790
XCOPY will do the trick.

XCOPY /T /E Source Destination

for more details on XCOPY, type XCOPY /? at a command prompt.
0
 
LVL 8

Author Comment

by:hendridm
ID: 12566868
Did the trick.  Not sure why I didn't notice that before :P  Thanks!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question