Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!blake!oregon!michelbi From: michelbi@oregon.uoregon.edu Newsgroups: comp.windows.ms Subject: Re: Environment space when running a DOS task Message-ID: <197@oregon.uoregon.edu> Date: 11 Feb 89 09:17:17 GMT References: <453@ambone.UUCP> Organization: University of Oregon Lines: 31 In article <453@ambone.UUCP>, leif@ambone.UUCP (Leif Andrew Rump) writes: > @echo off > set winpath=%path% > set path=D:\applic\windows;%winpath% > set ...=... > win %1 %2 %3 %4 %5 > set ...= > set path=%winpath% > set winpath= > > But I get a "Out of environment space" every time I try - even if I > create a dummy environment-variable that is 70 characters long before The way I minimize environment space is by using the following small .BAT file. echo off cd\windows\data_files path = C:\windows;%PATH% win %1 %2 %3 menu.bat "calls my main menu upon exit of windows" I have files like this for every major application that I run. This allows me to limit my environment space. Upon exit of my application (i.e. Windows here) only the %PATH% path will be active anymore. If you *simply* want to expand you environment space, I think you can do this using the SHELL = COMMAND.COM /xxx where xxx is you environment space in bytes. This line should be in your config.sys file. I hope this helps Michel Biedermann ( MichelBi @oregon ) ALLEZ LA SUISSE!