@echo off set source=C:\source
set target=C:\target
set filename=test.txtif exist %source%%filename% ( copy %source%%filename% %target% )
编写一个bat文件实现以下功能:检测文件夹内是否存在某个文件,如果存在,将该文件复制到另一个文件夹中...
最新推荐文章于 2023-08-28 17:17:22 发布
@echo off set source=C:\source
set target=C:\target
set filename=test.txtif exist %source%%filename% ( copy %source%%filename% %target% )