Jump to content

How to copy a whole directory tree WITHOUT content (=files)?


Recommended Posts

Guest Eugen Austermann
Posted

I want to copy a whole directory tree but WITHOUT the content (=files).

 

How can I do this?

 

Eugen

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest RajKohli
Posted

RE: How to copy a whole directory tree WITHOUT content (=files)?

 

Assuming that you have a folder tree like:

 

C:\SAMPLE> and subfolders including files like

TEST1>

TEST2>

Sample 2>

Sample 3>

TEST3>

 

and you want to copy only the directory structure except files.

 

1. Click Start - Run - type CMD and press Enter key.

2. At Command Prompt type the following command (as an example:)

 

XCOPY C:\SAMPLE D:\SAMPLE /T /E

 

/T - Copy Directory and Subdirectories except files

/E - Includes the empty directories as well.

 

Suppose, if you want to copy the SAMPLE folder on the same C drive with a

new name then you can use:

 

XCOPY C:\SAMPLE C:\SAM /T /E

 

Hope this help, let us know!

 

 

"Eugen Austermann" wrote:

> I want to copy a whole directory tree but WITHOUT the content (=files).

>

> How can I do this?

>

> Eugen

>

>


×
×
  • Create New...