Mail Archives: djgpp/2000/03/01/12:33:53
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 -