-------siwuxie095
%ERRORLEVEL%值一览表:
ATTRIB.EXE |
(a) Target file/folder not found |
(b) Invalid switch |
(c) Sharing violation (target file in use) |
(d) Invalid drive specification |
(e) Drive not ready (either Abort or Fail reply) |
(f) Invalid/wrong number of parameters |
win10下:
CHOICE.EXE |
(a) With reply list, and reply nn in list (This reply list position |
(b) Invalid switch |
(c) Invalid switch syntax |
(d) Timeout default not in reply list |
(e) choice /? |
win10下:
CSCRIPT.EXE |
(a) Cannot find script file |
(b) No script engine for file extension |
(c) No file extension in script file |
(d) Drive not ready (There is no Abort, Retry, Fail stall) |
win10下:
DELTREE.EXE |
(a) Required parameter missing |
(b) Invalid switch |
(c) deltree /? |
(d) Not ready reading drive (Abort reply) (Note: Fail reply returns ERRORLEVEL 0) |
win10下:
EXTRACT.EXE |
(a) Invalid switch |
win10下:
FC.EXE |
(a) Insufficient number of filespecs |
(b) Too many filenames on command line |
(c) Sharing Violation + Abort reply (Note: Fail reply returns ERRORLEVEL 0) |
(d) Drive not ready (Note: Fail reply returns ERRORLEVEL 0) |
win10下:
FIND.EXE |
(a) Target string found (=found) |
(b) Target string missing (=missing) |
(c) find /? |
(d) Parameter format not correct |
(e) Specified file to search not found |
(f) Specified file in use + Fail reply |
(g) Drive not ready + Fail reply |
(h) Specified file in use + Abort reply |
(i) Drive not ready + Abort reply |
win10下:
FORMAT.COM |
(a) Drive not ready (There is no Abort, Retry, Fail stall) |
win10下:
(a) Brief help (use: ftp -h for Brief help) |
(b) Error opening script file (file missing) |
(c) Invalid switch |
win10下:
KEYB.COM |
(a) Invalid switch |
(b) Invalid keyboard code specified |
(c) keyb /? |
win10下:
MEM.EXE |
(a) Invalid switch |
win10下:
MODE.COM |
(a) Invalid parameter |
(b) Invalid switch |
win10下:
MORE.COM |
(a) Invalid switch (MORE doesn't accept switches) |
(b) Drive not ready (Abort reply) (Note: Fail reply returns ERRORLEVEL 0) |
win10下:
MOVE.EXE |
(a) Required parameter missing |
(b) Unable to create destination |
(c) Unable to open source (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 (Note: file is nevertheless COPIED, not moved, in this case) |
(e) Sharing violation + Abort reply (Note: file is nevertheless COPIED, not moved, in this case) |
(f) Drive not ready (Abort reply) (Note: Fail reply - unusually - returns ERRORLEVEL 1) |
win10下:
PING.EXE |
(a) Unknown host (usually=name not found on DomainNameServer) |
(b) Brief help (with no parameter) Note: for PING Brief help with /? switch, ERRORLEVEL is 0 |
(c) Invalid switch (and displays the Brief help as well) |
(d) Interrupted with [Ctrl-C] |
win10下:
SORT.EXE |
(a) Invalid switch |
(b) Drive not ready (Abort reply) (Note: Fail reply returns ERRORLEVEL 0) |
win10下:
START.EXE |
(a) start /? (real mode) |
(b) start /? (GUI) |
(c) Can't find file specified for START |
(d) No file association for specified file |
(e) Drive not ready (There is no Abort, Retry, Fail stall) |
win10下:
SUBST.EXE |
(a) Invalid parameter |
(b) Invalid switch |
(c) Path not found |
(d) Drive not ready (Abort reply) (Note: Fail reply - unusually - returns ERRORLEVEL 1) |
win10下:
TRACERT.EXE |
(a) Unable to resolve target system name (usually=name not found on DomainNameServer) |
(b) Invalid switch |
(c) Brief help (no parameter) |
(d) Interrupted with [Ctrl-C] Note: for TRACERT Brief help, type command without parameters |
win10下:
XCOPY.EXE |
(a) File not found |
(b) Invalid date in /d switch |
(c) Invalid number of parameters |
(d) Invalid parameter |
(e) Device not ready |
(f) Unable to create directory |
(g) System can't find file |
win10下:
【made by siwuxie095】