BAT命令行批处理脚本之判断文件是否存在
@echo off
@title copy sth to current filepath
mode con lines=5 cols=40
SET SourceFile=123.txt
SET GenFile1=456.txt
if exist %SourceFile% (
if not exist %GenFile1% (
copy %SourceFile% %GenFile1%
) else (
echo %GenFile1% is exist!
)
) else (
echo %SourceFile% is not exist!
)
echo Success
ping -n 3 127.0.0.1 > nul
复制代码,保存为Findfile.BAT,运行即可。
BAT命令行批处理脚本之判断文件是否存在 https://www.gzza.com/25671.html
本网站资源来自互联网收集,仅供用于学习和交流,请勿用于商业用途。原创内容除特殊说明外,转载本站文章请注明出处。
如有侵权、不妥之处,联系删除。 Email:master@gzza.com
本网站资源来自互联网收集,仅供用于学习和交流,请勿用于商业用途。原创内容除特殊说明外,转载本站文章请注明出处。
如有侵权、不妥之处,联系删除。 Email:master@gzza.com
THE END