Can xcopy copy w/o tree structure?

G

Guest

Greetings everyone,

xcopy automatically recreates the tree structure of the source to the
destination which is fine most of the time but in some cases I need to
regroup hundreds of files from that many folders into just one place. There
doesn't seem to be a switch that allows that with xcopy. Is there a way
using cmd?

Thanks in advance
 
D

Dave Cohen

Francois said:
Greetings everyone,

xcopy automatically recreates the tree structure of the source to the
destination which is fine most of the time but in some cases I need to
regroup hundreds of files from that many folders into just one place. There
doesn't seem to be a switch that allows that with xcopy. Is there a way
using cmd?

Thanks in advance

The default is NOT to copy directories and subdirectories. Type xcopy /?
for all the command line options.
Dave Cohen
 
G

Guest

Dave Cohen said:
The default is NOT to copy directories and subdirectories. Type xcopy /?
for all the command line options.
Dave Cohen
I guess I should have specified that I use the /s switch because the
original files are in hudreds of different folders all of which are
ultimately inclosed into one root folder. The files are being copied ok,
it's just that when I open the destination I would like to see the files
directly and not the folders containing them.

Francois
 
D

Don

Francois said:
I guess I should have specified that I use the /s switch because the
original files are in hudreds of different folders all of which are
ultimately inclosed into one root folder. The files are being copied ok,
it's just that when I open the destination I would like to see the files
directly and not the folders containing them.

Francois

Why not zip the original root folder and then extract without using folder
names?
 

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