find&copy.bat
`
@ECHO OFF

@for /f %%i in (fileNameList.txt) do (
echo begin copy... %%i
echo find file ... C:\Users\Administrator\Desktop\bat\test%%i
copy /y "C:\Users\Administrator\Desktop\bat\test%%i" "C:\Users\Administrator\Desktop\bat\copy"
echo copy complate ... %%i
)
pause
`
其中,fileNameList.txt 需要拷贝的文件列表,每个文件一行:例如
2.txt
3.txt

test文件夹是源文件夹

copy文件夹是目的文件夹

注意:fileNameList.txt和bat脚本要放在同一个目录下面

相关文章:

  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-12-13
猜你喜欢
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-10-13
  • 2022-12-23
相关资源
相似解决方案