X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "one2001boy AT yahoo DOT com" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp 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> In-Reply-To: <01c4b8f7$Blat.v2.2.2$96d08f60@zahav.net.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 45 Message-ID: NNTP-Posting-Host: 69.104.56.233 X-Complaints-To: abuse AT prodigy DOT net X-Trace: newssvr14.news.prodigy.com 1098601505 ST000 69.104.56.233 (Sun, 24 Oct 2004 03:05:05 EDT) NNTP-Posting-Date: Sun, 24 Oct 2004 03:05:05 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: F[OSS_GGVJB_GZI]]RKB_UDAZZ\DPCPDLXUNNHLHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC AT FUG^Q\DINVAXSLIFXYJSSCCALP AT PB@\OS AT BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM Date: Sun, 24 Oct 2004 07:05:05 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: >>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. 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? > > 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. Thanks. Just think if will be more nice if it can work out without using those utilities.