Autoexec.bat files

Glenno

New Member
Hi everyone

I have quite a silly question to ask.

As part of a course I am studying, I need to design autoexec.bat and config.sys files to allocate more memory.

Now I know that these files are less important than they once were, but I'm hoping someone knows how to do it as I have drawn a blank.
I think my teacher is also testing my researching skills!

Anyway, any help would be appreciated

Glen
 

PC eye

banned
When editing those files particularly in WIN98 to overcome issues with more then 512mb of ram installed you would add the "MaxPhysPage=???" line in the autoexec.bat file under the [I386enh] section as follows:

"View products that this article applies to.
Article ID : 181862
Last Review : December 16, 2004
Revision : 1.2
This article was previously published under Q181862
If this article does not describe your hardware-related issue, please see the following Microsoft Web site to view more articles about hardware:
http://support.microsoft.com/support/windows/topics/hardware/hwddresctr.asp (http://support.microsoft.com/?scid=...upport/windows/topics/hardware/hwddresctr.asp)
SUMMARY
This article contains a table of MaxPhysPage values you can use to limit the amount of random access memory (RAM) available to Windows.
MORE INFORMATION
To use the MaxPhysPage entry to specify the amount of RAM that is available to Windows, add the following line in the [386Enh] section of the System.ini file
MaxPhysPage=<nnn>


where <nnn> is a hexidecimal number that determines the number of memory pages available to Windows. A page is 4096 bytes of RAM for 486 and Pentium processors.

When the MaxPhysPage entry is used, the following formula is used to determine the amount of RAM available to Windows:
4096 X MaxPhysPage (decimal) = Amount of RAM available to Windows in bytes


Therefore, to limit Windows to 32 MB of memory, use the following formula to determine the MaxPhysPage entry:
(32 * 1048576) / 4096 = 8192 (decimal) or 02000 (hexadecimal)


NOTE: One megabyte is 1,048,576 bytes.

The following table list some common RAM amounts and the corresponding MaxPhysPage entry:
Amount of RAM
available to Windows (MB) (Bytes) MaxPhysPage entry
--------------------------------------------------------------
960 1,006,632,960 MaxPhysPage=3C000
896 939,524,096 MaxPhysPage=38000
832 872,415,323 MaxPhysPage=34000
768 805,306,368 MaxPhysPage=30000
704 738,197,504 MaxPhysPage=2C000
640 671,088,640 MaxPhysPage=28000
576 603,979,776 MaxPhysPage=24000
512 536,870,912 MaxPhysPage=20000
448 469,762,048 MaxPhysPage=1C000
384 402,653,184 MaxPhysPage=18000
320 335,544,320 MaxPhysPage=14000
256 268,435,456 MaxPhysPage=10000
224 234,881,024 MaxPhysPage=0E000
192 201,326,592 MaxPhysPage=0C000
160 167,772,160 MaxPhysPage=0A000
128 134,217,728 MaxPhysPage=08000
96 100,663,296 MaxPhysPage=06000
88 92,274,688 MaxPhysPage=05800
80 83,886,080 MaxPhysPage=05000
72 75,497,472 MaxPhysPage=04800
64 67,108,864 MaxPhysPage=04000
56 58,720,256 MaxPhysPage=03800
48 50,331,648 MaxPhysPage=03000
40 41,943,040 MaxPhysPage=02800
32 33,554,432 MaxPhysPage=02000
24 25,165,824 MaxPhysPage=01800
16 16,777,216 MaxPhysPage=01000
12 12,582,912 MaxPhysPage=00C00
08 8,388,608 MaxPhysPage=00800"
http://support.microsoft.com/kb/181862/EN-US/

Note the above applies to Windows 9X-ME with 2000 and XP readily detecting larger amounts of installed memory. When you go to install 98SE the "MaxPhysPage=30000" line always did the trick here. There are also other entries for loading things into the upper memory when the OS is loaded. You will have to Google, Yahoo, ASK.com, and even MSN search around for the various articles on editing and creating those files at this later date. Unfortunately I lost a number of good links when dual OSing with 98 on newer builds with memory increases.
 
Top