COM file

COM
Filename extension
.COM
Internet media typeapplication/x-dosexec
Type of formatExecutable
Extended toDOS MZ executable
A number of COM files in IBM PC DOS 1.0

A COM file is a type of simple executable file. On the Digital Equipment Corporation (DEC) VAX operating systems of the 1970s, .COM was used as a filename extension for text files containing commands to be issued to the operating system (similar to a batch file).[1] With the introduction of Digital Research's CP/M (a microcomputer operating system), the type of files commonly associated with COM extension changed to that of executable files. This convention was later carried over to DOS. Even when complemented by the more general EXE file format for executables, the compact COM files remained viable and frequently used under DOS.

The .COM file name extension has no relation to the .com (for "commercial") top-level Internet domain name. However, this similarity in name has been exploited by malware writers.

  1. ^ Cite error: The named reference RT-11 was invoked but never defined (see the help page).