Multiple File Specifications

  • Thread starter Thread starter Barney
  • Start date Start date
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)?
 
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]
 
Back
Top