Christof Lange wrote:
>
> Thank you, Clarence, for your remarks,
>
> >I suggest you search for the strings representing 1M bytes to 8M
> >bytes in 1Mb steps and if you don't find one, assume it is more. <g>
>
> That means multiply with 1024? And look at the sum displayed by the
> MEM command?
>
> >There may be some
> >reason to also search for 64k less than each of these numbers.
> Why?
Look for the string like "total contiguous" and compare the number with
what you want in bytes. If N is #Mbytes, bytes is 1024*1024*N.
Remember that DOS takes 1Mb of your total (1048576) and MEM reports
what is left.
Re: the missing 64k. Some computers (I have one) take from the available
XMS to shadow the bios, and this screws with the total.
Here is a (slightly) tested method that makes good use of FIND and SORT:
http://caverge.arachne.cz/linked/memsize.zip (will be uploaded by midnite)
- Clarence Verge
--
- Help stamp out FATWARE. As a start visit: http://home.arachne.cz/
- The internet is infected - Windows is a VIRUS !!
--