-------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】

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

errorlevel 续2的更多相关文章

  1. errorlevel 续1

    -------siwuxie095             常用 errorlevel 返回值:     backup 0 备份成功 1 未找到备份文件 2 文件共享冲突阻止备份完成 3 用户用 ct ...

  2. .Net Core MVC 网站开发(Ninesky) 2.3、项目架构调整(续)-使用配置文件动态注入

    上次实现了依赖注入,但是web项目必须要引用业务逻辑层和数据存储层的实现,项目解耦并不完全:另一方面,要同时注入业务逻辑层和数据访问层,注入的服务直接写在Startup中显得非常臃肿.理想的方式是,w ...

  3. [.NET] C# 知识回顾 - 委托 delegate (续)

    C# 知识回顾 - 委托 delegate (续) [博主]反骨仔 [原文]http://www.cnblogs.com/liqingwen/p/6046171.html 序 上篇<C# 知识回 ...

  4. iOS 开发者账号到期续费流程

    1.登录developer.apple.com,查看到期时间 2.到期提醒通知,点击Renew Membership续费(一般提前一个月提醒续费) 3.个人开发者账号续费需要支付 688人民币/年(9 ...

  5. 微信公众号开发系列教程一(调试环境部署续:vs远程调试)

    http://www.cnblogs.com/zskbll/p/4080328.html 目录 C#微信公众号开发系列教程一(调试环境部署) C#微信公众号开发系列教程一(调试环境部署续:vs远程调试 ...

  6. CI-持续集成(1)-软件工业“流水线”概述

    CI-持续集成(1)-软件工业“流水线”概述 1   概述 持续集成(Continuous integration)是一种软件开发实践,即团队开发成员经常集成它们的工作,通过每个成员每天至少集成一次, ...

  7. 分享我基于NPOI+ExcelReport实现的导入与导出EXCEL类库:ExcelUtility (续3篇-导出时动态生成多Sheet EXCEL)

    ExcelUtility 类库经过我(梦在旅途)近期不断的优化与新增功能,现已基本趋向稳定,功能上也基本可以满足绝大部份的EXCEL导出需求,该类库已在我们公司大型ERP系统全面使用,效果不错,今天应 ...

  8. [译]Godot系列教程三 - 场景实例化(续)

    场景实例化(续) 要点 场景实例化带来很多便利的用法,总体来说有: 将场景细分,更便于管理 相对于某些引擎中的Prefab组件更灵活,并且在许多方面更强大 是一种设计更复杂的游戏流程甚至UI的方式 这 ...

  9. 【小白的CFD之旅】13 敲门实例【续3】

    接上文[小白的CFD之旅]12 敲门实例[续2] 4 Results4.1 计算监测图形4.2 Graphics4.2.1 壁面温度分布4.2.2 创建截面4.2.3 显示截面物理量4.2.4 Pat ...

随机推荐

  1. Alpha阶段第2周/共2周 Scrum立会报告+燃尽图 04

    作业要求[https://edu.cnblogs.com/campus/nenu/2018fall/homework/2287] 版本控制:https://git.coding.net/liuyy08 ...

  2. Android sdk 更新后编译不过,【Could not find com.android.sdklib.build.ApkBuilderMain】

    最近更新了Android sdk,发现编译不过了 解决方案: 进入 sdk/tool/lib/ 目录下,看看有没有 sdklib.jar 这个文件,如果没有看看有没有sdklib-25.*.*.jar ...

  3. (转)ZooKeeper-3.3.4集群安装配置

    转载于 千与 的 http://blog.csdn.net/shirdrn/article/details/7183503 ZooKeeper是一个分布式开源框架,提供了协调分布式应用的基本服务,它向 ...

  4. python 安装psutil包报错:

    报错: Failed building wheel for psutil Google得知,需要安装python-devel 和 wheel sudo dnf install python-devel ...

  5. Jmeter-Interleave Controller(交替控制器)

    名称: 注释: ignore sub-controller blocks: If checked, the interleave controller will treat sub-controlle ...

  6. IOS中UITableViewCell使用详解

    IOS中UITableViewCell使用详解 - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(N ...

  7. 使用阿里云docker加速器

    登陆之后,在docker镜像仓库-加速器可获得专有加速地址. 如何使用Docker加速器 针对Docker客户端版本大于1.10的用户 您可以通过修改daemon配置文件/etc/docker/dae ...

  8. 《DSP using MATLAB》Problem 2.14

    代码: %% ------------------------------------------------------------------------ %% Output Info about ...

  9. python爬虫——多线程+协程(threading+gevent)

    上一篇博客中我介绍了如何将爬虫改造为多进程爬虫,但是这种方法对爬虫效率的提升不是非常明显,而且占用电脑cpu较高,不是非常适用于爬虫.这篇博客中,我将介绍在爬虫中广泛运用的多线程+协程的解决方案,亲测 ...

  10. proc 文件系统学习

    proc.txt翻译 ------------------------------------------------------------------------------Version 1.3 ...