home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / apps / 5881 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.0 KB  |  46 lines

  1. Newsgroups: comp.os.msdos.apps
  2. Path: sparky!uunet!rei2!fox
  3. From: fox@rei.com (Fuzzy Fox)
  4. Subject: Re: Out of Environment Space
  5. Message-ID: <1992Dec16.223026.10810@rei.com>
  6. Date: Wed, 16 Dec 1992 22:30:26 GMT
  7. References: <1992Dec15.222843.7901@epas.toronto.edu>
  8. Organization: Recognition Equipment, Inc.
  9. Lines: 35
  10.  
  11. kan@epas.utoronto.ca (Raymond Kan) writes:
  12.  
  13. >    Every time I use Norton Commander I have this minor problem.
  14. >After I give a DOS command like SET TEMP=C:\ in a batch file,
  15. >I always get an out of environment space error message.  I always have
  16. >to quit Norton Commander in order to run the batch file without error.
  17.  
  18. It's okay that you get the error, because it would not have worked
  19. anyway.
  20.  
  21. Norton Commander spawns a new copy of COMMAND.COM in order to run the
  22. commands you specify.  When you perform the SET TEMP=C:\ command in this
  23. new copy of COMMAND.COM, it will set the environment variable in that
  24. program's environment space, and it when the program returns to Norton
  25. Commander, nothing will have changed, because that program's environment
  26. disappears!  This is an annoying "feature" of Norton Commander.
  27.  
  28. It also happens that the new COMMAND.COM will not have the environment
  29. space that you set in CONFIG.SYS, but will have the bare minimum needed
  30. to contain the parent environment, with no room for expansion.  This is
  31. what's causing your "Out of Environment Space" error.
  32.  
  33. The short answer is that you can't set environment variables easily from
  34. within Norton Commander.  A longer answer is that you must set any
  35. environment variables in the MASTER environment, although DOS does not
  36. provide any tools to do this for you.  You will need a program that does
  37. it.  Some tools I have seen to do this are XSET and STRINGS.  STRINGS
  38. was recently posted in comp.binaries.ibm.pc, I suggest you check it out
  39. soon!  :)
  40.  
  41. -- 
  42. #ifdef TRUE        | Fuzzy Fox (a.k.a. David DeSimone)       fuzzy@netcom.com
  43. #define  TRUE   0  |
  44. #define  FALSE  1  |  "You have been recruited by the Star League to defend
  45. #endif             |     the Frontier against Xur and the Kodan Armada."
  46.