$相当于什么?在 Windows 中? [英] What is the equivalent to $? in Windows?

查看:59
本文介绍了$相当于什么?在 Windows 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道 Windows 命令行中 $? 的等价物是什么?有吗?

Does anybody know what is the equivalent to $? in Windows command line? Is there any?

$? 是保存最后一个进程退出代码的 UNIX 变量

$? is the UNIX variable which holds the exit code of the last process

推荐答案

您想检查 <代码>%ERRORLEVEL%.

这篇关于$相当于什么?在 Windows 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆