home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10571 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!utcsri!torn!news.ccs.queensu.ca!slip202.telnet1.QueensU.CA!dmurdoch
  3. From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
  4. Subject: Re: Environment size hack in DOS 5?
  5. Message-ID: <dmurdoch.1.721630905@mast.queensu.ca>
  6. Summary: Don't tell me about SHELL= in CONFIG.SYS!
  7. Lines: 21
  8. Sender: news@knot.ccs.queensu.ca (Netnews control)
  9. Organization: Queen's University
  10. References: <1992Nov12.234502.22273@midway.uchicago.edu>
  11. Date: Fri, 13 Nov 1992 05:01:45 GMT
  12.  
  13. In article <1992Nov12.234502.22273@midway.uchicago.edu> pynq@quads.uchicago.edu (George Jetson) writes:
  14. >BTW, patching COMMAND.COM *is* the only correct solution.  CONFIG.SYS
  15. >only affects the first loaded copy of COMMAND.COM.  Further, there are
  16. >various kludge solutions floating around, e.g., ENV.ARC (from 1988 [!]) in
  17. >MSDOS.SYSUTL on Simtel, et al, but I am not interested in kludge solutions.
  18.  
  19. A simpler way is just to create a variable called FILLER that takes up lots 
  20. of space in your first loaded copy of COMMAND.COM; when you need space in a 
  21. child shell, get rid of FILLER.
  22.  
  23. e.g. Use the option to COMMAND in the SHELL= line of config.sys to get a 
  24. great big environment block, then in autoexec.bat 
  25.  
  26.   SET FILLER=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  27.  
  28. and in a child shell
  29.  
  30.   SET FILLER=
  31.  
  32. Duncan Murdoch
  33. dmurdoch@mast.queensu.ca
  34.