errorlevel 续2

-------siwuxie095

%ERRORLEVEL%值一览表:


ATTRIB.EXE


(a) Target file/folder not found
= ERRORLEVEL 1


(b) Invalid switch
= ERRORLEVEL 1


(c) Sharing violation (target file in use)
= ERRORLEVEL 1


(d) Invalid drive specification
= ERRORLEVEL 1


(e) Drive not ready (either Abort or Fail reply)
= ERRORLEVEL 1


(f) Invalid/wrong number of parameters
= ERRORLEVEL 1

win10下:


CHOICE.EXE


(a) With reply list, and reply nn in list
= ERRORLEVEL nn

(This reply list position
= return code is main use of CHOICE)


(b) Invalid switch
= ERRORLEVEL 255


(c) Invalid switch syntax
= ERRORLEVEL 255


(d) Timeout default not in reply list
= ERRORLEVEL 255


(e) choice /?
= ERRORLEVEL 255

win10下:


CSCRIPT.EXE


(a) Cannot find script file
= ERRORLEVEL 1


(b) No script engine for file extension
= ERRORLEVEL 1


(c) No file extension in script file
= ERRORLEVEL 1


(d) Drive not ready
= ERRORLEVEL 1

(There is no Abort, Retry, Fail stall)

win10下:


DELTREE.EXE


(a) Required parameter missing
= ERRORLEVEL 1


(b) Invalid switch
= ERRORLEVEL 1


(c) deltree /?
= ERRORLEVEL 1


(d) Not ready reading drive (Abort reply)
= ERRORLEVEL 18

(Note: Fail reply returns ERRORLEVEL 0)

win10下:


EXTRACT.EXE


(a) Invalid switch
= ERRORLEVEL 1

win10下:


FC.EXE


(a) Insufficient number of filespecs
= ERRORLEVEL 1


(b) Too many filenames on command line
= ERRORLEVEL 1


(c) Sharing Violation + Abort reply
= ERRORLEVEL 5

(Note: Fail reply returns ERRORLEVEL 0)


(d) Drive not ready
= ERRORLEVEL 18

(Note: Fail reply returns ERRORLEVEL 0)

win10下:


FIND.EXE


(a) Target string found (=found)
= ERRORLEVEL 0


(b) Target string missing (=missing)
= ERRORLEVEL 1


(c) find /?
= ERRORLEVEL 1


(d) Parameter format not correct
= ERRORLEVEL 2


(e) Specified file to search not found
= ERRORLEVEL 2


(f) Specified file in use + Fail reply
= ERRORLEVEL 2


(g) Drive not ready + Fail reply
= ERRORLEVEL 2


(h) Specified file in use + Abort reply
= ERRORLEVEL 5


(i) Drive not ready + Abort reply
= ERRORLEVEL 5

win10下:


FORMAT.COM


(a) Drive not ready
= ERRORLEVEL 4

(There is no Abort, Retry, Fail stall)

win10下:


FTP.EXE


(a) Brief help (use: ftp -h for Brief help)
= ERRORLEVEL 2


(b) Error opening script file (file missing)
= ERRORLEVEL 2


(c) Invalid switch
= ERRORLEVEL 2

win10下:


KEYB.COM


(a) Invalid switch
= ERRORLEVEL 1


(b) Invalid keyboard code specified
= ERRORLEVEL 1


(c) keyb /?
= ERRORLEVEL 1

win10下:


MEM.EXE


(a) Invalid switch
= ERRORLEVEL 1

win10下:


MODE.COM


(a) Invalid parameter
= ERRORLEVEL 1


(b) Invalid switch
= ERRORLEVEL 1

win10下:


MORE.COM


(a) Invalid switch (MORE doesn‘t accept switches)
= ERRORLEVEL 1


(b) Drive not ready (Abort reply)
= ERRORLELEL 5

(Note: Fail reply returns ERRORLEVEL 0)

win10下:


MOVE.EXE


(a) Required parameter missing
= ERRORLEVEL 1


(b) Unable to create destination
= ERRORLEVEL 1


(c) Unable to open source
= ERRORLEVEL 1

(you see this when trying to MOVE a folder from one drive

to another. You need to use XCOPY /S followed by DELTREE,

since MOVE won‘t handle folder moves across drives)


(d) Sharing violation + Fail reply
= ERRORLEVEL 1

(Note: file is nevertheless COPIED, not moved, in this case)


(e) Sharing violation + Abort reply
= ERRORLEVEL 5

(Note: file is nevertheless COPIED, not moved, in this case)


(f) Drive not ready (Abort reply)
= ERRORLEVEL 18

(Note: Fail reply - unusually - returns ERRORLEVEL 1)

win10下:


PING.EXE


(a) Unknown host
= ERRORLEVEL 1

(usually=name not found on DomainNameServer)


(b) Brief help (with no parameter)
= ERRORLEVEL 1

Note: for PING Brief help with /? switch, ERRORLEVEL is 0


(c) Invalid switch
= ERRORLEVEL 1

(and displays the Brief help as well)


(d) Interrupted with [Ctrl-C]
= ERRORLEVEL 255

win10下:


SORT.EXE


(a) Invalid switch
= ERRORLEVEL 1


(b) Drive not ready (Abort reply)
= ERRORLEVEL 15

(Note: Fail reply returns ERRORLEVEL 0)

win10下:


START.EXE


(a) start /? (real mode)
= ERRORLEVEL 1


(b) start /? (GUI)
= ERRORLEVEL 255


(c) Can‘t find file specified for START
= ERRORLEVEL 255


(d) No file association for specified file
= ERRORLEVEL 255


(e) Drive not ready
= ERRORLEVEL 255

(There is no Abort, Retry, Fail stall)

win10下:


SUBST.EXE


(a) Invalid parameter
= ERRORLEVEL 1


(b) Invalid switch
= ERRORLEVEL 1


(c) Path not found
= ERRORLEVEL 1


(d) Drive not ready (Abort reply)
= ERRORLEVEL 21

(Note: Fail reply - unusually - returns ERRORLEVEL 1)

win10下:


TRACERT.EXE


(a) Unable to resolve target system name
= ERRORLEVEL 1

(usually=name not found on DomainNameServer)


(b) Invalid switch
= ERRORLEVEL 1


(c) Brief help (no parameter)
= ERRORLEVEL 1


(d) Interrupted with [Ctrl-C]
= ERRORLEVEL 255

Note: for TRACERT Brief help, type command without parameters

win10下:


XCOPY.EXE


(a) File not found
= ERRORLEVEL 1


(b) Invalid date in /d switch
= ERRORLEVEL 4


(c) Invalid number of parameters
= ERRORLEVEL 4


(d) Invalid parameter
= ERRORLEVEL 4


(e) Device not ready
= ERRORLEVEL 4


(f) Unable to create directory
= ERRORLEVEL 4


(g) System can‘t find file
= ERRORLEVEL 5

win10下:

【made by siwuxie095】

时间: 2024-10-22 01:40:21

errorlevel 续2的相关文章

HDU——1874畅通工程续(邻接矩阵弗洛伊德)

畅通工程续 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 41849    Accepted Submission(s): 15463 Problem Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路.不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走

胜利大逃亡(续)(状态压缩bfs)

胜利大逃亡(续) Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7357    Accepted Submission(s): 2552 Problem Description Ignatius再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)……这次魔王汲取了上次的教训,把Ignatius关在一个n*m的地牢里,并在地牢的某些地方安装了带

KEY操作续

[KEY操作续] 1.UMP key 序列化给定 key ,并返回被序列化的值,使用 RESTORE 命令可以将这个值反序列化为 Redis 键. 序列化生成的值有以下几个特点: 它带有 64 位的校验和,用于检测错误, RESTORE 在进行反序列化之前会先检查校验和. 序列化的值不包括任何生存时间信息. 返回值: 如果 key 不存在,那么返回 nil . 否则,返回序列化之后的值. 2.FLUSHDB 清空当前数据库中的所有 key. 此命令从不失败. 3.DBSIZE 返回当前数据库的

C++ Primer 学习笔记_74_面向对象编程 --再谈文本查询示例[续/习题]

面向对象编程 --再谈文本查询示例[续/习题] //P522 习题15.41 //1 in TextQuery.h #ifndef TEXTQUERY_H_INCLUDED #define TEXTQUERY_H_INCLUDED #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <set> #include <map&g

初始ASP.NET数据控件【续 ListView】

ListView控件   ListView控件可以用来显示数据,它还提供编辑,删除,插入,分页与排序等功能.ListView是GridView与DataList的融合体,它具有GridView控件编辑数据的功能同时还具有DataList控件的灵活布局的功能.ListView控件的分页功能需要通过DataPager控件来实现. ListView控件的模版 LayoutTemplate:标识定义控件的主要布局的根模版.包含一个占位符对象,如表行(tr),div,span元素.此元素将由ItemTem

iOS账号续费及证书更新流程

开发者账号会员快到期的时候,苹果会发送给开发者账号的注册邮箱一封邮件,提示用户账号快到期了,及时续费,一般是提前一个月提示用户续费.下面开始介绍续费流程; 1.登录开发者账号后,网页上面会有账号过期黄色提示;点击renew your membership ;会跳到支付页面;个人开发者账号是688RMB/年; 2.选择continue; 3.购买详情,选择continue,然后点击购买 4.使用visa 或者 万事达信用卡支付,填写好发票信息就ok了,需要纸质发票的选择纸质发票;购买完后,苹果会发

Python学习笔记八:文件操作(续),文件编码与解码,函数,递归,函数式编程介绍,高阶函数

文件操作(续) 获得文件句柄位置,f.tell(),从0开始,按字符数计数 f.read(5),读取5个字符 返回文件句柄到某位置,f.seek(0) 文件在编辑过程中改变编码,f.detech() 获取文件编码,f.encoding() 获取文件在内存中的编号,f.fileno() 获取文件终端类型(tty.打印机等),f.isatty() 获取文件名,f.name() 判断文件句柄是否可移动(tty等不可移动),f.seekable() 判断文件是否可读,f.readable() 判断文件是

HDU 1874 畅通工程续 最短路

畅通工程续 Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路.不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多.这让行人很困扰. 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离. Input 本题目包含多组数据,请处理到文

C#在Linux上的开发指南(续)

续之前的一篇开发指南http://www.cnblogs.com/RainbowInTheSky/p/5496777.html 部分人在部署的时候经常出现dll兼容问题(其实可以看小蝶惊鸿的文章,蝶神早已踩过了坑http://www.cnblogs.com/xiaodiejinghong/tag/mono/) 站点部署后建议使用webbench进行压力测试 1.Microsoft.Web.Infrastructure.dll不用上传,mono已经实现(MS的dll有api依赖的问题),Mono的