'xxx' is not recognized as an internal or external command, operable program or batch file.

From Esolang
Jump to navigation Jump to search

'xxx' is not recognized as an internal or external command, operable program or batch file. or simply dmc is an esolang created by User:None1. It imitates a common Windows command prompt error when the user attempts to execute a command or file that doesn't exist.

Commands

Any command is valid, and prints:

'(Command name)' is not recognized as an internal or external command,
operable program or batch file.

Commands are separated by line feeds

Interpreter

Python

[print("'{}' is not recognized as an internal or external command,\noperable program or batch file.".format(x)) for x in __import__('sys').stdin.read().split('\n')]

C

The program implements a REPL, and uses the insecure function gets to read the program.

#include<stdio.h>
char _[1000000];int main(){while(!feof(stdin)){printf("C:\\>");gets(_);printf("'%s' is not recognized as an internal or external command,\noperable program or batch file.\n",_);}}

Batch

@echo off
:bad
set /p x=C:\^>
echo '%x%' is not recognized as an internal or external command,
echo operable program or batch file.
echo.
goto bad

See also