delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/01/12:33:53

Date: Wed, 1 Mar 2000 12:09:46 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Al <al_ AT tpg DOT com DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: Too many parameters
In-Reply-To: <008e01bf82b1$ac2fcfa0$9d0f3acb@1>
Message-ID: <Pine.SUN.3.91.1000301120904.12637H-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 29 Feb 2000, Al wrote:

> I've had DJGPP installed on my machine for some time now, and just
> recently I've been getting this message "Too many parameters" when the =
> batch file is executed.
> 
> I have a shortcut on my desktop, that loads COMMAND.COM, and then =
> MEM.BAT.
> The contents of MEM.BAT are as follows:
> 
> @ECHO OFF
> CLS.
> ECHO.
> CD DJGPP
> SUBST Z: C:\
> SUBST Y: C:\
> SET DJGPP=Z:\DJGPP\DJGPP.ENV
> SET PATH=Z:\DJGPP\BIN;%PATH%
> setdjgpp c:\djgpp c:/djgpp
>
> This used to work.
> When I rem the line "SET PATH=Z:\DJGPP\BIN;%PATH%" I don't get the =
> message.

I'm guessing that the value of PATH before the batch file is called
includes some directory with embedded blanks.  This makes the SET
command choke, because it doesn't expect more than a single parameter
after the equals sign.

One way to solve this is to replace the directory with the blanks with
its short 8+3 alias.  As another solution, try using the PATH command:

    PATH Z:\DJGPP\BIN;%PATH%

> I have also not modified DJGPP, or any of the contents of the DIR and =
> SUBs.

If my guess is right, this has nothing to do with DJGPP.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019