Mail Archives: djgpp/1997/09/09/07:31:00
Peter J. Farley III wrote:
> In the spirit of Paul Derbyshire's "tip of the week" idea, here's one
> I just ran across in the Win95 SDK that could be useful for we
> commandline junkies:
>
> In CONFIG.SYS, you can expand the DOS commandline length to 255 bytes
> by using the following parameter to command.com:
>
> shell=c:\windows\command.com /u:255
There's no need to look for this as far as the SDK (which many people
don't have), you can have the same info from the on-line help. Just
type this:
command /?
and read what's printed. Sometimes Microsoft *do* document their
features.
A word of warning: if you use any command-line editor that adds
history, aliases and such to the bare-bones command line, you should
be aware that enlarging the maximum command line length might break
such editors if they only have 128 bytes in the input buffer. For
example, DOSKEY has a special option /LINE:size to change the default
size (three guesses what the default is ;-) which should be used when
you give /u:255 switch to COMMAND.COM. If your command-line editor
doesn't let you enlarge the buffer, you should probably test the
larger line size to see if they at all work, before you commit to
/u:255.
- Raw text -