Windows Batch Copy file by filename
The file I want to copy is located in "C:\Report\" and the filename I want to copy is something like "rptXXXX.txt". Wha开发者_如何学Ct I want to do is write a batch that copy the file that the filename is start with "rpt".
The destination folder is "F:\Project\Report\".
This should work, you can use an * as a wildcard:
xcopy e:\foo\rpt*.txt e:\foo2
or in your case,
xcopy C:\Report\rpt*.txt F:\Project\Report\
精彩评论