Draft for Information Only
ContentMS DOS Command: MEM.EXE
MS DOS Command: MEM.EXEReference from Microsoft MS-DOS cmd help DescriptionDisplays the amount of used and free memory on your computer. You can use the MEM command to display information about allocated memory areas, free memory areas, and programs that are currently loaded into memory. SyntaxMEM [/CLASSIFY|/DEBUG|/FREE|/MODULE modulename] [/PAGE]
To display the status of your computer's used and free memory, use the following syntax: MEM
Switches
Related CommandFor information about checking the amount of space available on a disk, see the CHKDSK command. RemarksSpecifying the /PAGE switch automaticallyYou can use the DOSKEY program to automatically add the /PAGE switch to the MEM command. Then, each time you use MEM, it will pause after each screenful of information even if you don't type the /P switch on the MEM command line. To do this, add the following commands to your AUTOEXEC.BAT file: c:\dos\doskey doskey mem=mem.exe $* /p Displaying memory statusMS-DOS displays the status of extended memory only if you have installed memory above the 1-megabyte (MB) boundary in your system. MS-DOS displays the status of expanded memory only if you use expanded memory that conforms to version 4.0 of the Lotus/Intel/Microsoft Expanded Memory Specification (LIM EMS). MS-DOS displays the status of the upper memory area only if a UMB provider such as EMM386 is installed and the command DOS=UMB is included in the CONFIG.SYS file. MS-DOS does not display the status of the upper memory area if you issue the MEM command while you are running Windows version 3.0. Allocating extended memoryTo allocate Interrupt 15h memory and XMS memory at the same time, use the /INT15 switch when you load the HIMEM.SYS device driver. For more information, see HIMEM.SYS. ExamplesGetting general program and memory information Suppose your system has both expanded memory and extended memory. To display a summary of your system's total memory--conventional, expanded, extended, and upper--and to display a list of programs currently loaded into memory, type the following command: mem /classify The results might look similar to the following: Modules using memory below 1 MB:
Memory Summary:
"Reserved" is the memory located on add-on boards such as video adapter boards. "Largest executable program size" is the largest contiguous block of conventional memory available for a program. "Largest free upper memory block" is the largest area of upper memory available for a program. "MS-DOS is resident in the high memory area" indicates that MS-DOS is running in the first 64K of extended memory rather than in conventional memory. Getting information about a specific program To find out what memory a specific program module has allocated, use the MEM /MODULE command. For example, to find out what memory the WIN386 module has allocated, you would type the following command: mem /module win386 If you were running WIN386, the results might look similar to the following: WIN386 is using the following memory:
Some program modules, such as WIN386, allocate more than one area of memory. The MEM /MODULE command displays all the areas of memory allocated by the specified program, and shows the segment address and size of each allocation. For upper memory blocks, MEM /MODULE also shows the region number. The Type column shows how the program is using that particular area of memory. The "total size," in this case 98,336 bytes (96K), shows the total amount of memory allocated by MS-DOS for the specified program. ©sideway ID: 110700216 Last Updated: 7/29/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019