开发者

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\
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜