X-Authentication-Warning: delorie.com: mailnull set sender to opendos-bounces using -f X-Spam-Filter: check_local AT panther DOT unisys DOT com DOT br by digitalanswers.org Message-ID: <00cc01c19631$6838c780$0300a8c0@alain-nb> From: "Alain" To: Subject: Re: on a related note Date: Sat, 5 Jan 2002 19:17:55 -0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: opendos AT delorie DOT com Hi, one trick is to allocate a lot of big variables in the autoexec and clear them when you want space: In the Autoexec: SET JUNK1=12345678901234567890123456789012345678901234567890 SET JUNK2=12345678901234567890123456789012345678901234567890 SET JUNK3=12345678901234567890123456789012345678901234567890 in your batch file: SET JUNK1= SET JUNK2= SET JUNK3= Ahh.. and don't forget inyour config.sys to allocate enough environment. Explanation: When you create a new shell, DOS allocates only little extra space in the environment. BTW: don't forget the maximum line length of 127 characters!! Alain -----Original Message----- From: DONALD PEDDER To: opendos AT delorie DOT com Date: Saturday, January 05, 2002 12:43 AM Subject: Re: on a related note >> SET PAR1=%1 >> SET PAR2=%2 >> SHIFT >> SHIFT > > Yes, this has ALMOST solved my problem. :-) :-( > > I have 25 parameters to pass to the batch file, which then recursively >calls my pascal program with different parameters each time. I was able to >do up to 9 in a single batch file with no problem. > > I tried using this approach to set 25 environment variables, and I got >"out of environment space" after the 8th. The thing is, I was able to >MANULLY set these variables, and after I've set them MANUALLY, the batch >file will work, but with a clean sheet to start with, the batch file only >allocates a certain number before it hits this problem. > > Thinking things might be happenning too fast when run as batch, I put >some gaps between them, but it still failed. I also broke it up into >separate batch files of 8 each, and it still failed after the first one. > > I can't understand why the batch file allocations are failing when I >have no trouble doing it manually (and the bacth file then works after >they've been manually created). > > Any ideas? > > I've started looking around the web for some batch-file sites (given >the lack of documentation with DR-DOS), but I think this would be a rather >unusual problem. It's probably because I have MS-DOS on the laptop. ;-) > >Thanks, > dp. > > >