Ms Dos Command Error Codes
Contents |
File not found 03 Path not found 04 Too many open files (no handles left) 05 Access denied 06 Invalid handle 07 Memory control blocks destroyed 08 Insufficient memory windows batch file return code 09 Invalid memory block address 0A Invalid environment 0B Invalid format 0C Invalid access
Dos Errorlevel
mode (open mode is invalid) 0D Invalid data 0E Reserved 0F Invalid drive specified 10 Attempt to remove current directory 11 dos error codes list Not same device 12 No more files 13 Attempt to write on a write-protected diskette 14 Unknown unit 15 Drive not ready 16 Unknown command 17 CRC error 18 Bad request structure length 19 Seek windows exit code error 1A Unknown media type 1B Sector not found 1C Printer out of paper 1D Write fault 1E Read fault 1F General failure 20 Sharing violation 21 Lock violation 22 Invalid disk change 23 FCB unavailable 24 Sharing buffer overflow 25 Reserved 26 Unable to complete file operation (DOS 4.x) 27-31 Reserved 32 Network request not supported 33 Remote computer not listening 34 Duplicate name on network 35 Network name not
Errorlevel 9009
found 36 Network busy 37 Network device no longer exists 38 NetBIOS command limit exceeded 39 Network adapter error 3A Incorrect network response 3B Unexpected network error 3C Incompatible remote adapter 3D Print queue full 3E No space for print file 3F Print file deleted 40 Network name deleted 41 Access denied 42 Network device type incorrect 43 Network name not found 44 Network name limit exceeded 45 NetBIOS session limit exceeded 46 Temporarily paused 47 Network request not accepted 48 Print or disk redirection is paused 49-4F Reserved 50 File already exists 51 Reserved 52 Cannot make directory entry 53 Fail on INT 24 54 Too many redirections 55 Duplicate redirection 56 Invalid password 57 Invalid parameter 58 Network device fault 59 Function not supported by network (DOS 4.x) 5A Required system component not installed (DOS 4.x) DOS Error Code/Classes Error Classes 01 Out of resource, out of space, channel, etc 02 Temporary situation, not an error, ex: file lock 03 Authorization, permission denied 04 Internal, system detected internal error 05 Hardware failure, serious problem related to hardware 06 System failure, ex: invalid configuration 07 Application error, inconsistent request 08 Not found, file/item not found 09 Bad format, file/item in invalid format 0A Locked, file/item interlocked 0B Media failu
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or echo errorlevel posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss dos errorlevel check Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes
Powershell Errorlevel
a minute: Sign up easy way to see dos command return code up vote 21 down vote favorite 5 Sometimes I run a command in cmd such as: fc /b file1 file2 and would like to see the return code http://stanislavs.org/helppc/dos_error_codes.html from fc. Is there a simple way to do this? windows cmd dos return-code share|improve this question asked Mar 26 '10 at 8:07 Warpin 3,48973764 add a comment| 1 Answer 1 active oldest votes up vote 42 down vote accepted echo %ERRORLEVEL% From TechNet, Command shell overview: "%ERRORLEVEL% ... Returns the error code of the most recently used command. A non zero value usually indicates an error." To test for specific error levels in batch files, you may find this knowledgebase http://stackoverflow.com/questions/2521818/easy-way-to-see-dos-command-return-code article useful. share|improve this answer answered Mar 26 '10 at 8:16 Andras Vass 9,4462341 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged windows cmd dos return-code or ask your own question. asked 6 years ago viewed 34736 times active 6 years ago Related 649How to pass command line parameters to a batch file?264Is there a command to refresh environment variables from the command prompt in Windows?6What is the Windows/cmd.exe equivalent of Linux/bash's $? — the program exit/return code?1339Is there an equivalent of 'which' on the Windows command line?470How do I get the application exit code from a Windows command line?1Windows batch file commands and variables1How can I communicate with Command Prompt (CMD) using C++?375How to run two commands in one line in Windows CMD?0DOS Batch Command Timer1“EXIT” in batch file cannot overwrite return code of previous commands Hot Network Questions How do spaceship-mounted railguns not destroy the ships firing them? Why are planets not crushed by gravity? Create a 5x5 Modulo Grid Is "youth" gender-neutral when countable? Why aren't there direct flights connecting Honolulu, Hawaii and London, UK? Can I stop this homebrewed
04h Too many open tiles (no file handles available) 05 05h Access denied 06 06h Invalid handle 07 07h Memory control block destroyed 08 08h Insufficient memory 09 http://www.computerhope.com/xdoseror.htm 09h Memory block address invalid 10 0Ah Environment invalid (usually >32k in length) 11 0Bh Format invalid 12 0Ch Access code invalid 13 0Dh Data invalid 14 0Eh (reserved) 15 0Fh Invalid drive 16 http://www.febooti.com/products/automation-workshop/online-help/events/run-dos-cmd-command/exit-codes/ 10h Attempted to remove current directory 17 11h Not same device 18 12h No more tiles 19 13h Disk write-protected 20 14h Unknown unit 21 15h Drive not ready 22 16h Unknown command 23 17h dos error Data error (CRC) 24 18h Bad request structure length 25 19h Seek error 26 1Ah Unknown media type (non-DOS disk) 27 1Bh Sector not found 28 1Ch Printer out of paper 29 1Dh Write fault 30 1Eh Read fault 31 1Fh General failure 32 20h Sharing violation 33 21h Lock violation 34 22h Disk change invalid 35 23h FCB unavailable 36 24h Sharing buffer invalid 37 25h (DOS 4+) code ms dos command page mismatch 38 26h (DOS 4+) cannot complete file operation (out of input) 39 27h (DOS 4+) insufficient disk space 40 28h (reserved) 41 29h (reserved) 42 2Ah (reserved) 43 2Bh (reserved) 44 2Ch (reserved) 45 2Dh (reserved) 46 2Eh (reserved) 47 2Fh (reserved) 48 30h (reserved) 49 31h (reserved) 50 32h Network request not supported 51 33h Remote computer not listening 52 34h Duplicate name on network 53 35h Network name not found 54 36h Network busy 55 37h Network device no longer exists 56 38h Network BIOS command limit exceeded 57 39h Network adapter hardware error 58 3Ah Incorrect response from network 59 3Bh Unexpected network error 60 3Ch Incompatible remote adapter 61 3Dh Print queue full 62 3Eh Queue not full 63 3Fh Not enough space to print file 64 40h Network name was deleted 65 41h Network access denied 66 42h Network device type incorrect 67 43h Network name not found 68 44h Network name limit exceeded 69 45h Network BIOS session limit exceeded 70 46h Temporarily paused 71 47h Network request not accepted 72 48h Network print and disk redirection paused 73 49h (LANtastic) invalid network version 74 4Ah (LANtastic) account expired 75 4Bh (LANtastic) password expired 76 4Ch (LANtastic) login
and Start program / application Action events (67000, 67002, 67202, 67402) may end with errorlevels or exit codes, that indicate the termination status of executed Command or Application. They can help in finding the particular reason of command's or application's termination. Although Automation Workshop shows codes in decimal format, they are also referred as hexadecimal or negative decimal values.Exit codeDetails0Program suseccfully completed.1Incorrect function. Indicates that Action has attempted to execute non-recognized command in Windows command prompt cmd.exe.2The system cannot find the file specified. Indicates that the file can not be found in specified location.3The system cannot find the path specified. Indicates that the specified path can not be found.5Access is denied. Indicates that user has no access right to specified resource.9009
0x2331Program is not recognized as an internal or external command, operable program or batch file. Indicates that command, application name or path has been misspelled when configuring the Action.3221225477
0xC0000005
-1073741819Access violation.Indicates that the executed program has terminated abnormally or crashed.3221225495
0xC0000017
-1073741801Not enough virtual memory is available.Indicates that Windows has run out of memory.3221225786
0xC000013A
-1073741510The application terminated as a result of a CTRL+C. Indicates that the application has been terminated either by user's keyboard input CTRL+C or CTRL+Break or closing command prompt window.3221225794
0xC0000142
-1073741502The application failed to initialize properly. Indicates that the application has been launched on a Desktop to which current user has no access rights. Another possible cause is that either gdi32.dll or user32.dll has failed to initialize.3221226505
0xC0000409
-1073740791Stack buffer overflow / overrun. Error can indicate a bug in the executed software that causes stack overflow, leading to abnormal termination of the software.3221225725
0xC00000FD
-1073741571Stack overflow / exhaustion.