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