Xcopy help

C

coffee

I am trying to use xcopy to create a list of the dirs and sub dirs
within my source dir, and write it to a text file.

this is what I have:
D:\> xcopy D:\docs /t /e /s /l > xcopy.txt

However, all I get is a file with "6704 File(s)"

Without /t i get a list of all the files, which I don't want.

Can xcopy do what I want?
 
A

Amnon Feiner

coffee said:
I am trying to use xcopy to create a list of the dirs and sub dirs
within my source dir, and write it to a text file.

this is what I have:
D:\> xcopy D:\docs /t /e /s /l > xcopy.txt

However, all I get is a file with "6704 File(s)"

Without /t i get a list of all the files, which I don't want.

Can xcopy do what I want?
Try diruse, google for it.
 
S

Stan Brown

I am trying to use xcopy to create a list of the dirs and sub dirs
within my source dir, and write it to a text file.

Why don't you use DIR -- it's designed for making a list of files.
(Hint: DIR /? and look at the description of the /B option.)

XCOPY is designed for, well, copying. Listing the copied files is
just a side effect.
this is what I have:
D:\> xcopy D:\docs /t /e /s /l > xcopy.txt
Without /t i get a list of all the files, which I don't want.

HUH??? Earlier you said you _did_ want a list.
Can xcopy do what I want?

Well, nobody and nothing can do what you want till you decide what
that is. :)
 
R

RobertVA

coffee said:
I am trying to use xcopy to create a list of the dirs and sub dirs
within my source dir, and write it to a text file.

this is what I have:
D:\> xcopy D:\docs /t /e /s /l > xcopy.txt

However, all I get is a file with "6704 File(s)"

Without /t i get a list of all the files, which I don't want.

Can xcopy do what I want?

Have you considered:

dir D:\docs /s > xcopy.txt
 
C

coffee

RobertVA said:
Have you considered:

dir D:\docs /s > xcopy.txt

Excellent, finally got what I need with this:
dir D:\docs /s /b /a:D > xcopy.txt

thanks Robert
 
P

Phil Weldon

'PopS' wrote:
| Please explain...?
_____

"...wink, wink, nudge, nudge, say no more?"

Phil Weldon
| PopS wrote:
| > "*."
| >
| >
|
| Please explain... ?
 

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