Gary Meszaros
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!