Programming Field

Mem - DOS/Command Prompt Reference

[MS-DOS] It displays a list of programs loaded in DOS and the memory usage status in a summary.

[Windows NT series / XP or later (32-bit version only)] While the NT series does not have the concept of DOS, this program is still available. Please note, however, that the following description assumes MS-DOS version 5.00.

Syntax

mem[.exe] [/CLASSIFY | /DEBUG | /FREE | /MODULE <module-name> | /PROGRAM] [/ALL] [/PAGE]

* It cannot be combined with any options other than the /ALL and /PAGE options.

/CLASSIFY Lists and displays the current programs loaded, along with their usage of conventional memory and upper memory. This option can be abbreviated as ‘/C’.
/DEBUG Displays a list of information on currently loaded programs and internal drivers, as well as detailed information such as total memory usage. This option can be abbreviated as ‘/D’.
/FREE [MS-DOS 6.00 or later] Provides a detailed display of information on currently unused (available) conventional memory and upper memory. This option can be abbreviated as ‘/F’.
/MODULE <module-name> [MS-DOS 6.00 or later] Provides a detailed display of memory usage for the module specified by <module-name>. The ‘/MODULE’ option can be abbreviated as ‘/M’.
/PROGRAM [MS-DOS 5.00 or earlier] Lists the addresses at which programs are currently loaded. This option can be abbreviated as ‘/P’. (Note: In MS-DOS versions earlier than or equal to 5.00, since /PAGE cannot be used, /P takes on the meaning of /PROGRAM.)
/ALL [MS-DOS 6.00 or later] Also displays the size of the available space in the High Memory Area (HMA). This option can be abbreviated as ‘/A’.
/PAGE [MS-DOS 6.00 or later] Shows one page at a time, when displaying results on the screen, adjusting to the screen size (similar to the behavior of the More command). This option can be abbreviated as ‘/P’. (Note: In MS-DOS versions 6.00 and later, since /PROGRAM cannot be used, /P takes on the meaning of /PAGE.)

Details

The Mem program allows you to determine how much memory drivers and programs are using in DOS. Since the available memory in the DOS space is limited, this tool is useful for calculations such as deciding which programs to load in upper memory.

Samples

Sample

mem /c /p

[MS-DOS 6.00 or later] Lists the currently loaded programs along with the memory usage for each program, displayed on a per-page basis.