X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sun, 24 Oct 2004 20:26:53 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c4b9f7$Blat.v2.2.2$2ea5e060@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (one2001boy AT yahoo DOT com) Subject: Re: tar.exe problem References: <2thjecF1urnn1U1 AT uni-berlin DOT de> <48Fdd.16708$nj DOT 14914 AT newssvr13 DOT news DOT prodigy DOT com> <01c4b72d$Blat.v2.2.2$08f4f8a0 AT zahav DOT net DOT il> <01c4b8f7$Blat.v2.2.2$96d08f60 AT zahav DOT net DOT il> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "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.