Mail Archives: djgpp/2004/10/24/14:32:27
> From: "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com>
> Date: Sun, 24 Oct 2004 07:05:05 GMT
>
> > No, the maximum command-line length that Windows can give to a DOS
> > program is 126. So this last command is too long.
>
> Based on brian's input, here is the command line size allowed in Windows.
>
> MS DOS command.com 127
> Windows NT cmd.exe 256
> Windows 2K cmd.exe 2046
> Windows XP cmd.exe 8190
>
> I use Windows XP, not sure why it still limits to 126 for tar.exe?
Brian was talking about Windows programs, but DJGPP programs are DOS
programs as far as Windows is concerned. For DOS programs, the limit
is 126 characters on all MS operating systems without exception. This
is the consequence of a simple fact that the DOS system call which
invokes programs has a 127-character buffer for the command line,
including the trailing newline.
> Thanks. Just think if will be more nice if it can work out without using
> those utilities.
Complain to Bill Gates: it was a deliberate decision on the part of
Microsoft to ostracize DOS programs from most of the niceties
introduced by latest versions of Windows.
- Raw text -