![为什么 Windows Defender 显然只返回退出代码“0”或“2”,而从不返回 1?](https://linux22.com/image/1627461/%E4%B8%BA%E4%BB%80%E4%B9%88%20Windows%20Defender%20%E6%98%BE%E7%84%B6%E5%8F%AA%E8%BF%94%E5%9B%9E%E9%80%80%E5%87%BA%E4%BB%A3%E7%A0%81%E2%80%9C0%E2%80%9D%E6%88%96%E2%80%9C2%E2%80%9D%EF%BC%8C%E8%80%8C%E4%BB%8E%E4%B8%8D%E8%BF%94%E5%9B%9E%201%EF%BC%9F.png)
当我运行命令时"C:\Program Files\Windows Defender\MpCmdRun.exe"
,它会输出该命令的信息。其中一部分内容如下:
Return code is 0 if no malware is found or malware is successfully remediated and no additional user action is required 2 if malware is found and not remediated or additional user action is required to complete remediation or there is error in scanning. Please check >History for more information.
所以它可以有返回代码 0 或 2,但不能有 1?为什么他们(显然)跳过了 1?这是因为 1 传统上应该表示“实际错误”,而他们只使用 0 来表示“未发现恶意软件”,因为这是几十年来所有操作系统二进制文件的“预期行为”?
这很有道理,但你认为他们至少会列出1
是否可以退回吗?