Command Prompt (cmd) Error Messages
The Windows command interpreter, its built-in commands and batch files.All Command Prompt (cmd) pages
- 'x' is not recognized as an internal or external command, operable program or batch file.cmd prints this when the name you typed is not a built-in command and no matching .exe, .cmd or .bat exists in the current folder or any PATH directory.
- cmd: ... was unexpected at this time.cmd prints X was unexpected at this time when a line breaks after expansion: an empty variable in if, %i instead of %%i in a batch for loop, or a ) in a value.
- cmd: Access is denied.Access is denied in cmd is Windows error 5: the file is read-only, NTFS permissions do not allow it, or the command needs an elevated Command Prompt to run.
- cmd: The syntax of the command is incorrect.The syntax of the command is incorrect means cmd could not parse a line: usually an empty variable in an if test, unbalanced parentheses or a bad for loop.
- cmd: The system cannot find the file specified.Windows error 2 means the folder exists but the file does not: a typo, a hidden extension like report.txt.txt, the wrong current folder or an unquoted path.
- cmd: The system cannot find the path specified.cmd prints The system cannot find the path specified when a folder in the path is missing, a path with spaces is unquoted, or AutoRun names a bad path.
- The filename, directory name, or volume label syntax is incorrect.Windows error 123: the path contains a character Windows forbids in names, such as < > | ? * or a stray colon or quote, often from a pasted path or a date.
- The process cannot access the file because it is being used by another process.Windows error 32: another program holds the file open without sharing. Find it with Resource Monitor or handle.exe, close it, then retry the del, move or copy.
- timeout: ERROR: Input redirection is not supported, exiting the process immediately.timeout.exe exits at once when its input is redirected, as in CI jobs, scheduled tasks and pipes. Wait with ping -n or PowerShell Start-Sleep instead.