Out of Environment space w/.bat files

J

Jim F

I run a number of C & Cobol programs batched togeter in
a .bat file. In Win95 and NT4.0 there was never a problem
with how many I batched together. Under 2000 and XP, I
receive an "Out of Evironment space" error. I have tried
to re-SET the Environment inbetween each step but it
doesn't seem to clear it. Here is a sample:
rEM
JS63dma.EXE
REM
SET CTLFILE=
SET CTLFILE=JS64B1.CTL
JS64B1.EXE
rem
SET CTLFILE=
SET CTLFILE=JS64B2.CTL
JS64B2.EXE
rem
SET CTLFILE=
SET CTLFILE=JS64B3.CTL
JS64B3.EXE

The "CTLFILE" is the control file that the programs read
for each step. Any suggestions to get it to run all the
way through?
 
R

Ritchie

Jim F said:
with how many I batched together. Under 2000 and XP, I
receive an "Out of Evironment space" error. I have tried
SET CTLFILE=
SET CTLFILE=JS64B3.CTL
JS64B3.EXE

The "CTLFILE" is the control file that the programs read
for each step. Any suggestions to get it to run all the
way through?

1) Make sure you are using cmd.exe and NOT command.com (I'm sure
you're already using cmd but it's best to eliminate this rookie
error early on <g>).

2) Instead of:-
JSxxBx.EXE
try
start /w JSxxBx.EXE

3) Rename your script from .bat to .cmd (I'm clutching at straws now).

At the moment I can't imagine what's causing the problem, maybe there's
something you're not telling us. BTW, how large is you batch file and
are these 16-bit apps?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top