bat !ERRORLEVEL!
时间: 2023-08-30 14:08:50 浏览: 182
在bat中,!ERRORLEVEL!是一个特殊变量,它用于表示上一条命令的执行结果。当命令执行成功时,!ERRORLEVEL! 的值为0,如果命令执行失败,则!ERRORLEVEL!的值为非零数值。可以使用!ERRORLEVEL!与条件语句结合使用,来进行条件判断和跳转。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [这些常用的批处理命令你会了么?(Windows 10)](https://blog.csdn.net/u013293125/article/details/106159137)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [bat的errorlevel || bat判断语句是否执行成功](https://blog.csdn.net/weixin_46157208/article/details/120054134)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文