Mail Archives: djgpp/2000/03/03/19:56:35
[posted to comp.os.msdos.djgpp and mailed to the OP]
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>
> 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'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%
Quotes seem to be required if there are spaces in the path:
C:\>set path=c:\program files
Too many parameters
C:\>path c:\program files
Too many parameters
C:\>set path="c:\program files"
or:
C:\>path "c:\program files"
C:\>echo %path%
C:\PROGRA~1
See how the directory is converted to its SFN equivalent. It is
difficult to see how spaces could get into the path in the first
place. Other environment variables are handled ok though, so I think
SET PATH must be given special treatment by the shell.
C:\>set test=c:\program files
C:\>echo %test%
c:\program files
This is with W95, other versions are likely to be broken differently!
> > 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.
Maybe another application has been installed recently and this has
added to the PATH variable, best to check autoexec.bat
Al, You could also try asking this in alt.msdos.batch
It looks like the mail gateway to the list does not propogate messages
to the newsgroup except for posts by subscribers to the list.
This makes it difficult to reply via mail to the OP, who would
probably need a mail reply since they do not follow the group. It
also means that requests for help will not be seen by the group until
someone replies (to the list) and quotes the original article.
Is that a correct observation and is this the intended behaviour of
the gateway?
- Raw text -