dos的errorlevel实例讲解

时间:2026-02-15 13:35:51

1、运行输入cmd

进入dos界面

dos的errorlevel实例讲解

2、我们首先运行这个命令

我们输入dir

dos的errorlevel实例讲解

3、回车看看结果

dos的errorlevel实例讲解

4、我们输入 echo %errorlevel%

dos的errorlevel实例讲解

5、回车看看结果

框内为0

意思是成功

dos的errorlevel实例讲解

6、接着我们输入 echo?

然后回车看看如图结果

dos的errorlevel实例讲解

7、我们再次输入

echo %errorlevel%

结果不是0 是9009 这个是失败的意思

dos的errorlevel实例讲解

© 2026 阿力知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com