Search code examples
shellcommand-linecommand-promptdos

Renaming MS-DOS internal commands


Is it possible by any means to rename the internal commands of DOS? Firstly, I am doing this to learn a bit about the internals and possibilities of DOS. So far I have changed the internal command CLS to XLX (on Windows XP). But the command name XLX isn't executing. I am attaching 2 screenshots for the reference. Above everything else, this whole activity is just my curiosity.

debugged the command.com file and changed the CLS to XLX debugged the command.com file and changed the CLS to XLX


Solution

  • That shell you're running isn't DOS and it isn't command.com; as the window title indicates, it's cmd.exe which is a different program entirely. Your changes might actually work if you were running the DOS command interpreter — which might or might not be as easy as just running command from the cmd shell.