batch-file – .bat If Then Statement

前端之家收集整理的这篇文章主要介绍了batch-file – .bat If Then Statement前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要帮助编写批处理脚本

if file newfile.txt exists
then  del "InDesignData.txt"
ren "newfile.txt" "InDesignData.txt"

解决方法

if not exist newfile.txt goto skip
del "InDesignData.txt"
ren "newfile.txt" "InDesignData.txt"
:skip

猜你在找的Windows相关文章