X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sat, 23 Oct 2004 13:57:11 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c4b8f7$Blat.v2.2.2$96d08f60@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> 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: Fri, 22 Oct 2004 02:48:07 GMT > > Then, I added one more file to tar. It gets the error message. > "The system cannot execute the specified program." > > C:\>tar cvf ctree.tar \cc\toolkit\sbin\qanitest.exe > \cc\toolkit\demos\mechanism\chapters\startup\animatestCR.cc > \cc\toolkit\include\fourbar.h > The system cannot execute the specified program. > [...] > I just calculate the total number of characters including space > for > "tar cvf ctree.tar \cc\toolkit\sbin\qanitest.exe > \cc\toolkit\demos\mechanism\chapters\startup\animatestCR.cc > \cc\toolkit\include\fourbar.h" > > it is only 138 characters. I think MSDOS supports at least 1024 > characteres for command line. No, the maximum command-line length that Windows can give to a DOS program is 126. So this last command is too long. DJ Delorie suggested to use the Make utility to have up to 14KB long command lines. Someone else, I think it was Hans-Bernhard, suggested to use the response file facility (see section 16.4 of the DJGPP FAQ list for details). These are two ways to work around the 126-character limitation.