Multiple File Specifications

B

Barney

Is it possible to specify multiple file specifications
with a single COPY or XCOPY command? Here's the
situation:

I have a folder whose contents vary. I want to copy only
files with certain extensions (say *.001, *.002, *.003,
and *.004).

I realize I could write 4 separate XCOPY statements or a
single FOR %%A (*.001 *.002 *.003 *.004) DO XCOPY %%
A . . .

but I wonder if there is a more efficient way to do this
(with a single command)?
 
T

Torgeir Bakken \(MVP\)

Barney said:
Is it possible to specify multiple file specifications
with a single COPY or XCOPY command? Here's the
situation:

I have a folder whose contents vary. I want to copy only
files with certain extensions (say *.001, *.002, *.003,
and *.004).

I realize I could write 4 separate XCOPY statements or a
single FOR %%A (*.001 *.002 *.003 *.004) DO XCOPY %%
A . . .

but I wonder if there is a more efficient way to do this
(with a single command)?
Hi

Microsoft's Robocopy.exe is able to do this.

Info and download link for the latest version of Robocopy.exe here:

http://groups.google.com/[email protected]
 

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