Copy a directory but only include specific files (extension)

ROBOCOPY C:\Source D:\Destination *.zip *.txt /E

/E = copy subdirectories, including empty ones
/S = copy subdirectories, excluding empty ones

More information about robocopy, click here

Posted in Batch files, Microsoft and tagged , .

Leave a Reply