Windows - DOS era MODE.COM command is still functional

0

So, for some reason, on Windows 10, the DOS MODE.COM command is still fully functional. Why? I don't understand why they left this in, considering it would need to be updated from 16 bit to 32 bit, as 16 bit programs do not run on newer NT kernels. Any explanations for this?

MicroTransactionsMatterToo

Posted 2017-07-08T13:03:51.180

Reputation: 9

1Since Windows NT "DOS" was not DOS, it was a DOS-compatible command line interpreter, in the NT stream mode.com would probably never have been a 16-bit executable. – Mokubai – 2017-07-08T13:13:49.003

1Do you even know the extend of the command mode.com? It can do much more than just changing the screen size. – LPChip – 2017-07-08T13:15:15.720

@LPChip meant "extent" (and is right). – TOOGAM – 2017-07-08T15:46:25.993

Looked into it, and I know what it does now. Just find it interesting that it's still a .COM file. Suppose it's just part of Windows attempt to keep stuff compatible. Now I know how to manually use COM ports in windows, which is nice :) – MicroTransactionsMatterToo – 2017-07-14T21:57:11.807

Answers

1

On Windows 10, the DOS MODE.COM command is still fully functional.

considering it would need to be updated from 16 bit to 32 bit, as 16 bit programs do not run on newer NT kernels.

It is no longer a 16-bit application on Windows 7+:

$ file C:/Windows/System32/mode.com
C:/Windows/System32/mode.com: PE32+ executable (console) x86-64, for MS Windows

Notes:

  1. The Portable Executable (PE) format is a file format for executables, object code, DLLs, FON Font files, and others used in 32-bit and 64-bit versions of Windows operating systems.

    Source Portable Executable

  2. The + is becuase I'm running a 64-bit version of Windows.

DavidPostill

Posted 2017-07-08T13:03:51.180

Reputation: 118 938