Xcopy help

  • Thread starter Thread starter coffee
  • Start date Start date
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?
 
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.
 
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. :-)
 
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
 
'PopS' wrote:
| Please explain...?
_____

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

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