[英]Creating Batch file to copy file which starts with 'ABC' and ends with 'Current' to another folder
我有一个要求,我必须创建一个批处理文件来复制以'ABC'开头并以Current.xls结尾的文件夹中的文件。
对于前:
文件在文件夹中
C:\\Sample\Source
ABC Great outdoors Current.xls
ABC Great outdoors Previous.xls
ABC Treading corp Current.xls
我想复制以ABC开头并以Current结尾的文件到新文件夹。
我尝试使用xcopy命令,但我不知道如何搜索文件名。
copy C:\Sample\Source\ABC*Current.xls targetfolder
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.