Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!bionet!ames!amdcad!sun!imagen!atari!portal!uunet!mcvax!kth!enea!dkuug!ambush!ambone!leif From: leif@ambone.UUCP (Leif Andrew Rump) Newsgroups: comp.windows.ms Subject: Environment space when running a DOS task Keywords: MS-Windows, windows, MicroSoft, DOS Message-ID: <453@ambone.UUCP> Date: 9 Feb 89 11:00:18 GMT Organization: AmbraSoft A/S (Denmark) Lines: 29 I want to run non-window-programs like MicroSoft CL, WordPerfect and others from MicroSoft Windows. My problems is that I use .BAT-files to create the necessary environment-variables that that program need, call the program and remove the environment variables when the programs is finished to avoid loads of environment-variables in my AUTOEXEC-file and a PATH that has a width of seven screens! f.x. @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 I call Windows and destroy it (and thereby creating space - I thought - for other environment-variables) when my non-windows-programs-BAT-file take over _BEFORE_ creating it's own environment-variables. HELP! Leif Andrew Rump, AmbraSoft A/S, Roejelskaer 15, DK-2840 Holte (Denmark) UUCP: leif@ambra.dk, phone: +45 2424 111, touch phone: +45 422 817 + 313 > > > Why are tall Irish girls with red hair so wonderful ? ? ? < < <