Mail Archives: djgpp/2004/10/21/23:00:13
Eli Zaretskii wrote:
>>From: "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com>
>>Date: Thu, 21 Oct 2004 02:27:12 GMT
>>
>>Even if I convert the above command into test.bat file and run it,
>>I still get the same error.
>
>
> Using a batch file does not change the command-line length limitations
> in any way.
>
>
>>Maybe it is a bad idea. But it just indicates that tar.exe has
>>the problem.
>
>
> Sorry, I still don't understand what ``the problem'' is. Could you
> please post a command line that causes that problem, together with the
> error message, and make sure that both the command line and the
> message is posted _exactly_ as they look on the screen, without extra
> newlines and wrapping? Please use actual file names that exist on
> your systems, and please show us the listing of the directory or
> directories in which those files reside.
>
> Finally, please make sure you have only one tar.exe on your PATH, and
> the one that is being invoked is, in fact, a DJGPP port of Tar.
Yes, tar.exe is from DJGPP port.
I tried to tar two files, qanitest.exe and animatestCR.cc, it is successful.
C:\>tar cvf ctree.tar \cc\toolkit\sbin\qanitest.exe
\cc\toolkit\demos\mechanism\chapters\startup\animatestCR.cc
tar: Removing leading `/' from absolute path names in the archive
cc/toolkit/sbin/qanitest.exe
cc/toolkit/demos/mechanism/chapters/startup/animatestCR.cc
C:\>
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.
C:\>
The new file added file fourbar.h does exist.
C:\>dir \cc\toolkit\include\fourbar.h
Volume in drive C is PRESARIO
Volume Serial Number is E0F3-1DD3
Directory of C:\cc\toolkit\include
09/09/2004 08:57 PM 6,539 fourbar.h
1 File(s) 6,539 bytes
0 Dir(s) 12,949,270,528 bytes free
C:\>
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.
- Raw text -