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

  • Thread starter Eugen Austermann
  • Start date
E

Eugen Austermann

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

How can I do this?

Eugen
 
B

Bob I

use XCOPY with the /T switch

Use XCOPY /? at the command prompt for particulars, or look up XCOPY in
Windows "Help and Support".
 
B

BigJim

just copy it and delete the files or move the files first to a temp
directory and then back. You could also create the entire tree
by typing it.
 
T

Terry R.

The date and time was 3/4/2008 11:19 AM, and on a whim, Eugen Austermann
pounded out on the keyboard:
I want to copy a whole directory tree but WITHOUT the content (=files).

How can I do this?

Eugen

Hi Eugen,

Use xcopy and the /T switch. Type xcopy /? at a command prompt.

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
T

Terry R.

The date and time was 3/4/2008 11:19 AM, and on a whim, Eugen Austermann
pounded out on the keyboard:
I want to copy a whole directory tree but WITHOUT the content (=files).

How can I do this?

Eugen

Forgot to mention, you must also use /E for empty folders (you'd
probably see that).

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
B

Bill Sharpe

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

How can I do this?

Eugen
At a command prompt and at the directory of interest, type
tree>tree.txt
This will create a list of your subfolders for that directory in a text
file.

If you want the file names included, type
tree /f>treefiles.txt

If you want to actually make a new directory listing only, see the xcopy
/t or xcopy /t /e options. At a command prompt, type xcopy /? for help.
 
L

LVTravel

Hope I'm not doing your homework for you but use XCOPY with the proper
switch from the CMD prompt.

Start, Run, CMD, Enter, Type "XCOPY /?" without the quotes to see and read
all about the proper switches to do just what you want to do.
 
R

RajKohli

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top