Link to home
Start Free TrialLog in
Avatar of Gary Meszaros
Gary MeszarosFlag for United States of America

asked on

Xcopy specified file extension only

Is there a way to use xcopy to just copy files with a certin file extension for example xcopy only .doc files?
ASKER CERTIFIED SOLUTION
Avatar of Murat Raymond
Murat Raymond
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just to add a little more detail to vico1's post above:

here's an example:
xcopy c:\Temp\*.doc c:\Temp2 /I

This command will copy all files ending in doc from the c:\Temp folder into the c:\Temp2 folder.  The /I  (that's a slash "eye") just means that Temp2 is a directory (and not a file).  Just alter the above command to suite the path where you're copying your files from and to.

Post back if you have any questions!