简体   繁体   English

重命名批处理文件Windows

[英]Rename batch file Windows

I have a 123-5678.tiff file I would like to copy and rename as 20 different names like 我有一个123-5678.tiff文件,我想复制并重命名为20个不同的名称,如

4542345.tiff
4542346.tiff
4542347.tiff
4542349.tiff
4542350.tiff
4542351.tiff
4542353.tiff
4542354.tiff
4542355.tiff
4542357.tiff
4542358.tiff
4542359.tiff
4542360.tiff

This 20 or 50 names are given in the form of text file or Excel file. 这20或50个名称以文本文件或Excel文件的形式给出。

for /f %%f in (filelist.txt) do copy "123-5678.tiff" "%%f"

For each line in filelist.txt (containing a file name) do copy the source file to target 对于filelist.txt中的每一行(包含文件名),请将源文件复制到目标

It can work as is or fail for a bunch or reasons. 它可以按原样工作,也可以一堆或原因失败。 There is too little information. 信息太少了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM