SoFunction
Updated on 2025-04-09

Common error messages under the DOS command line

Bad command or file name

[English] Bad command or file name
[Translation] Incorrect command or file name

Causes and solutions of errors:

This is probably the most common error message for everyone, which means that the command entered is invalid. This error message will appear when the entered command is neither an internal DOS command, and the system cannot find the corresponding executable file in the search path or the specified path. You can check whether the entered command is correct, such as whether the letters are typed incorrectly, etc.

Access Denied

[English] Access Denied
[Translation] Denied access

Causes and solutions of errors:

This is also a common mistake. There are many situations, such as when using the DEL command to delete files with read-only attributes, or when multiple processes access the same file at the same time in a multi-task environment, and trying to write files in a network folder with read-only permissions. The solution is also very simple. You only need to remove the read-only, hidden and other attributes of the file, or ensure that only one process is reading and writing files at the same time, and remove the read-only permissions of network folders.

Drive not ready

[English] Drive not ready
[Translation] The drive is not ready

Causes and solutions of errors:

I believe everyone has encountered this error message! It is especially common when accessing removable disks (including floppy disks and optical disks). The solution is to plug in the disk and try again.

Write protect error 

[English] Write protect Error
[Translation] Write protection error

Causes and solutions of errors:

This error occurs when trying to write information to a written protected disk (usually a floppy disk). Just remove the disk write protection.

General error

[English] General error
[Translation] General error

Causes and solutions of errors:

This error usually occurs when the DOS does not recognize the format of the specified disk, such as the floppy disk being not formatted. Use FORMAT and other commands to format the disk or convert it into a format that DOS can recognize.

Abort,Retry,Ignore,Fail? 

[English] Abort,Retry,Ignore,Fail?
[Translation] Abort, try again, ignore, fail?

Causes and solutions of errors:

This error message appears very frequently, such as when the disk is not ready. Enter A to cancel the operation, and then return to the DOS prompt. Enter R to try again. Enter I to ignore this error and continue. It is best not to use it. Enter F to skip this error. This item is often selected.

File not found

[English] File not found
[Translation] File not found

Causes and solutions of errors:

This prompt will appear if the specified file cannot be found when using many commands. For example, when using the DIR command, if the specified file does not exist, the error message will appear. The solution is to enter the file name correctly.

Incorrect DOS version 

[English] Incorrect DOS version
[Translation] The wrong DOS version

Causes and solutions of errors:

This error message will appear when the command to be executed finds that the current DOS version is different from the DOS version expected by this command. For specific situations and solutions, please refer to the articles in the "DOS Articles" column of this website.

Invalid directory 

[English] Invalid directory
[Translation] Illegal Directory

Causes and solutions of errors:

This prompt will appear if you enter a directory that does not exist or is invalid. You can check whether there is any error in the input.

 Invalid Drive Specification 

[English] Invalid Drive Specification
[Translation] The specified drive is illegal

Causes and solutions of errors:

This prompt will appear when the input drive does not exist. Please check if the drive exists. Some drives (such as NTFS volumes, optical drives, network drives, etc.) need to be loaded to be recognized.

Syntax error 

[English] Syntax error
[Translation] Syntax error

Causes and solutions of errors:

This command is common when using some batch commands (such as IF, FOR, etc.), and can check whether an invalid syntax is entered. Taking the FOR command as an example, its syntax is the FOR %F IN (file name) DO  command. You cannot make this syntax format wrong (such as inverted or missed, etc.). You must enter the correct command to get the correct result.

Required parameter missing 

[English] Required parameter missing
[Translation] The necessary parameters are missing

Causes and solutions of errors:

This prompt appears if the parameters required to complete the function normally are missing when executing a command (such as DEL).

Invalid parameter 

[English] Invalid parameter
[Translation] Illegal parameters

Causes and solutions of errors:

An invalid parameter was entered when executing the command. You can check whether the entered parameters are correct, whether there are any spelling errors, etc. If you don't know what parameters are, you can usually use the /? option of this command to view the parameter list.

Not enough memory or Insufficient memory

[English] Not enough memory or Insufficient memory
[Translation] Insufficient memory

Causes and solutions of errors:

This information will appear if the program finds that the memory required is greater than the memory that can be used (usually regular memory) when executing the program. This causes insufficient memory such as executing too many or too large memory resident programs, or system memory not well configured, etc. You can see the "Memory Configuration under DOS" in this column.

Divide overflow or Divide by zero

[English] Divide overflow or Divide by zero
[Translation] The divisor is zero

Causes and solutions of errors:

This error will occur if the program is run when the system is unstable, conflicts with other programs, or if there is a problem with the program itself. You can try restarting the system and then running this program.

Runtime error xxx 

[English] Runtime error xxx
[Translation] Runtime error xxx

Causes and solutions of errors:

Similar to the "divider is zero" error above. If the value of xxx is 200, you can see the "DOS Articles" column.

Error in EXE file 

[English] Error in EXE file
[Translation] There is an error in the EXE file

Causes and solutions of errors:

Usually, this executable file is corrupted and can no longer be used. Just use a good one.

The above is the error message under the common DOS command line method, and you can use the above to troubleshoot the problem.