Here's a sample autoexec.bat file I use to squeeze the last drop of RAM from
my PC.  I've attached the results of DOS 5.0 report (mem /c) at the end of this
note.


I now have to make 1 of 3 assumptions:
        a.   You have never seen an autoexec.bat
        b.   You have modified one until it works and haven't been back since.
        c.   You know more about it than I ever will.

Well, if you picked a or c, then stop reading now - I can't help you here.
For the "B" users, here we go.
The bat file is listed below "as is".  Below it, I have copied salient parts
with (I hope) helpful explanations.

Autoexec.bat:

REM  THE CHECK LINE BELOW PROVIDES ADDITIONAL SAFETY FOR STACKER DRIVES.
REM  PLEASE DO NOT REMOVE IT.
C:\STACKER\CHECK /WP
D:\QEMM\LOADHI /R:2 D:\WINDOWS\SMARTDRV.EXE
PROMPT=$p$g
PATH=D:\WINDOWS;D:\QEMM;C:\;C:\DOS;D:\XTGOLD;C:\STACKER;D:\PW;C:\WC30;c:WC30\BOBCAT;c:\catscan;
D:\QEMM\LOADHI C:\DOS\SHARE.EXE /F:4096 /L:40
SET TEMP=C:\DOS
SET TMP=C:\DOS
SET MOUSE=C:\MOUSE
SET WCNODEID=1


Lines 1 & 2 are for me so I don't screw-up my stacker drive by changing
line 3.  If you don't have stacker 3.0  - GET IT!  It's nearly any size hard-
drive you have times 2.  Got a 50Mb - now it's 100.

Since I run Windows 3.1, I use QEMM 6.0 memory manager to load the smartdrv
into high RAM.  (That's the area above 640K and below 1Mb RAM - whatever
that means... )  Line 4.  the reason I have it in D:\ instead of C:\ is
that I have dual hard drives in my PC.  If you have 1 drive with only 1
partition, then use C:\.  Otherwise, use the letter of whichever drive
QEMM and Windows\smartdrv.exe are located.

Lines 5 and 6 are my prompt and my path (where the .EXE, .COM and .BAT files
are located).  If they are in one of the directories named here, I can
type the command from anywhere in the DOS prompt to start the program.
If it's not on the path, then I get "BAD COMMAND OR FILE NAME" ... and
a headache.

I use line 7 to load the DOS share program. not for multi-line BBS's or
even for DesqView or Windows.  I need it for Paradox for Windows.  If you
are running a DOS machine, single-node BBS, ignore it.

The remaining lines all are used by DOS to store system variables.  That way,
whenever Windows writes a TEMP file (or a TMP file), it knows where to put
them so I don't wind up with multi megabytes of junk $%$$$tr.001 type files
strung all over the place.  It also makes Windows run faster.

Here's the RAM report:

C:\> mem /c > ram.doc
     (note:  it can help diagnose a PC problem if you put the RAM
report in a text file.  The above command uses the ">" symbol
to redirect the output from the screen of your PC to a file called
"RAM.DOC".  Then I "insert" or append the ram.doc to the autoexec.
bat file)

Conventional Memory :

  Name                Size in Decimal       Size in Hex
-------------      ---------------------   -------------
  MSDOS              13680      ( 13.4K)       3570
  QEMM386             3088      (  3.0K)        C10
  LOADHI               256      (  0.3K)        100
  LOADHI               352      (  0.3K)        160
  LOADHI               256      (  0.3K)        100
  SETVER               400      (  0.4K)        190
  COMMAND             2944      (  2.9K)        B80
  SHARE               8608      (  8.4K)       21A0
  WILDCAT             4832      (  4.7K)       12E0
  COMMAND             2864      (  2.8K)        B30
  FREE                  64      (  0.1K)         40
  FREE                 160      (  0.2K)         A0
  FREE              617472      (603.0K)      96C00

Total  FREE :       617696      (603.2K)

Total bytes available to programs :                           617696   (603.2K)
Largest executable program size :                             617216   (602.8K)

   3686400 bytes total EMS memory
   1343488 bytes free EMS memory

   3407872 bytes total contiguous extended memory
         0 bytes available contiguous extended memory
   1343488 bytes available XMS memory
           MS-DOS resident in High Memory Area


Be sure to use this file inconjunction with the CONFIG.SYS also contained
in this archive...

Pat Martin
The STEEL MODEM BBS
214-219-0954
Lewisville TX
 