• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2709
  • Last Modified:

Find memory size in MS-Dos

hi all,
does any one how to find memory size through MS-Dos commands?
thanks

i found a mommand , mem. but didnt understand it.  it gave same result for a 1G memory and 512M memory computer.
0
shahidp
Asked:
shahidp
  • 3
  • 3
  • 2
1 Solution
 
Ashish PatelCommented:
mem is the correct command? what information do you need exactly?
0
 
shahidpAuthor Commented:
i want to find what size of RAM is installed in my computer.
0
 
Ashish PatelCommented:
"xxxxxx bytes total contiguous extended memory" is the total RAM displayed when you use mem command
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
shahidpAuthor Commented:
'total contiguous extended memory'  is always showing   1048576  for  both 1G computer and 512 computer
0
 
shahidpAuthor Commented:
'total contiguous extended memory'  is always showing   1048576  for  both 1G RAM computer and 512MB RAM computer
0
 
Gary CaseRetiredCommented:
DOS was written for the 8086 CPU, which can only address 1MB of memory.   Later CPU's are backwards compatible (thus the "X86" designation), but that doesn't change what DOS is capable of ==> so the MEM command will always show 1MB of memory on any system with more than that.

There were some extended memory extensions that allowed access to up to 16MB of memory after the 80286 CPU's were available, but I can't find any of the memory allocation tools for DOS that I can refer you to.   In any event, even these wouldn't show memory sizes greater than 16MB.

If you just need to determine how much memory is in a particular system (without opening it up and looking at the installed modules), just download the free MemTest86+ (http://www.memtest.org/ ) and create a bootable floppy or CD.   Then all you have to do is boot from the floppy/CD and it will show you how much memory is installed ==> and will also do a very thorough test of the memory if you let it keep running :-)
0
 
Ashish PatelCommented:
Write a program for this and you can get the total ram. Please follow the link below, may be that can help you.
http://msdn2.microsoft.com/en-us/library/Aa366586.aspx
0
 
Gary CaseRetiredCommented:
"... Write a program for this and you can get the total ram ..." => NO !!  Not in DOS.   The function call suggested in that comment is part of the Kernell32.dll library, which only works in Windows 2000 Pro, XP, and Vista.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now