bat代码如下:
1 @echo off 2 @set /p fromFile=from: 3 @set /p toFile=to: 4 rem 找到所有文件 5 dir /b /s %fromFile%\ *.gz >tmp 6 rem 一个文件一个文件的处理 7 for /f "delims=" %%x in (tmp) do ( 8 copy /y "%%x" %toFile% 9 ) 10 del tmp
使用截图:
bat代码如下:
1 @echo off 2 @set /p fromFile=from: 3 @set /p toFile=to: 4 rem 找到所有文件 5 dir /b /s %fromFile%\ *.gz >tmp 6 rem 一个文件一个文件的处理 7 for /f "delims=" %%x in (tmp) do ( 8 copy /y "%%x" %toFile% 9 ) 10 del tmp
使用截图:
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。