home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- if not exist ledit.exe goto NoLedit
-
- if "%1"=="" goto Help
- if "%2"=="" goto Help
-
- if %1==-l goto Do1LAlloc
- if %1==-r goto Do1LRes
- goto Help
-
- :Do1LAlloc
- echo
- echo Setting low memory allocation limit:
- extset -k ledit.exe -lowallocate %2
- echo
- goto NextParm
-
- :Do1LRes
- echo
- echo Setting free low memory reserve limit:
- extset -k ledit.exe -lowreserve %2
- echo
-
- :NextParm
- if "%3"=="" goto exit
- if %3==-l goto Do3LAlloc
- if %3==-r goto Do3LRes
- goto Help
-
- :Do3LAlloc
- if "%4"=="" goto Help
- echo
- echo Setting low memory allocation limit:
- extset -k ledit.exe -lowallocate %4
- echo
- goto exit
-
- :Do3LRes
- if "%4"=="" goto Help
- echo
- echo Setting free low memory reserve limit:
- extset -k ledit.exe -lowreserve %4
- echo
- goto exit
-
- :Help
- echo
- echo usage: memset -l (lm)KB -r (rm)KB.
- echo lm is the amount of low memory allocated by L-Edit.
- echo rm is the amount of low memory reserved as free by L-Edit.
- echo L-Edit will not allocate more than (freeMem - rm) KB.
- echo
- echo Current settings are (KB):
- extset -k ledit.exe -help | find "LOWALLOCATE"
- extset -k ledit.exe -help | find "LOWRESERVE"
- echo
- echo
- goto exit
-
- :NoLedit
- echo
- echo File LEDIT.EXE not found!
- echo
-
- :exit
-