home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p195 / 1.ddi / MEMSET.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-10-08  |  1.3 KB  |  67 lines

  1. @echo off
  2.  
  3. if not exist ledit.exe goto NoLedit
  4.  
  5. if "%1"=="" goto Help
  6. if "%2"=="" goto Help
  7.  
  8. if %1==-l goto Do1LAlloc
  9. if %1==-r goto Do1LRes
  10. goto Help
  11.  
  12. :Do1LAlloc
  13. echo 
  14. echo Setting low memory allocation limit:
  15. extset -k ledit.exe -lowallocate %2
  16. echo 
  17. goto NextParm
  18.  
  19. :Do1LRes
  20. echo 
  21. echo Setting free low memory reserve limit:
  22. extset -k ledit.exe -lowreserve %2
  23. echo 
  24.  
  25. :NextParm
  26. if "%3"=="" goto exit
  27. if %3==-l goto Do3LAlloc
  28. if %3==-r goto Do3LRes
  29. goto Help
  30.  
  31. :Do3LAlloc
  32. if "%4"=="" goto Help
  33. echo 
  34. echo Setting low memory allocation limit:
  35. extset -k ledit.exe -lowallocate %4
  36. echo 
  37. goto exit
  38.  
  39. :Do3LRes
  40. if "%4"=="" goto Help
  41. echo 
  42. echo Setting free low memory reserve limit:
  43. extset -k ledit.exe -lowreserve %4
  44. echo 
  45. goto exit
  46.  
  47. :Help
  48. echo 
  49. echo usage: memset -l (lm)KB -r (rm)KB.
  50. echo        lm is the amount of low memory allocated by L-Edit.
  51. echo        rm is the amount of low memory reserved as free by L-Edit.
  52. echo        L-Edit will not allocate more than (freeMem - rm) KB.
  53. echo 
  54. echo        Current settings are (KB):
  55. extset -k ledit.exe -help | find "LOWALLOCATE"
  56. extset -k ledit.exe -help | find "LOWRESERVE"
  57. echo 
  58. echo 
  59. goto exit
  60.  
  61. :NoLedit
  62. echo 
  63. echo File LEDIT.EXE not found!
  64. echo 
  65.  
  66. :exit
  67.