TAR with multiple files and /G

Jun 7, 2008
121
0
Hi

On checking TAR documentation, I thought that

TAR /G arch B20100809.PRG B20100809A.PRG

will

(i) create arch.TAR from the 2 PRG files
(ii) create arch.TAR.gz from the ARCH.tar, running GZIP on the new TAR file

If I try this out, I see

[C:\First\Sit2\f\g]tar /G arch B20100809.PRG B20100809A.PRG
<= C:\First\Sit2\f\g\B20100809.PRG
<= C:\First\Sit2\f\g\B20100809A.PRG
TCC: Error in archive C:\First\Sit2\f\g\arch.tar.gz :
.tar.gz files cannot be appended to. "C:\First\Sit2\f\g\B20100809A.PRG"

Did I do anything wrong or misread the documentation?

Thanks

Stephen Howe
 
Jul 1, 2008
81
0
74
Montreal
Hi

On checking TAR documentation, I thought that

TAR /G arch B20100809.PRG B20100809A.PRG

will

(i) create arch.TAR from the 2 PRG files
(ii) create arch.TAR.gz from the ARCH.tar, running GZIP on the new TAR file

If I try this out, I see

[C:\First\Sit2\f\g]tar /G arch B20100809.PRG B20100809A.PRG
<= C:\First\Sit2\f\g\B20100809.PRG
<= C:\First\Sit2\f\g\B20100809A.PRG
TCC: Error in archive C:\First\Sit2\f\g\arch.tar.gz :
.tar.gz files cannot be appended to. "C:\First\Sit2\f\g\B20100809A.PRG"

Did I do anything wrong or misread the documentation?

Thanks

Stephen Howe

I see the same thing. If arch.tar.gz doesn't exist:
Code:
C:\btm del arch.tar.gz
Deleting C:\btm\arch.tar.gz
     1 file deleted              8,192 bytes freed

0 C:\btm TAR /G "arch" RegTweaks.btm check.btm
<= C:\btm\RegTweaks.btm
<= C:\btm\check.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\check.btm"
if it exists, the same command produces different error messages:
Code:
C:\btm TAR /G arch RegTweaks.btm check.btm
<= C:\btm\RegTweaks.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\RegTweaks.btm"
<= C:\btm\check.btm
TCC: Error in archive C:\btm\arch.tar.gz :
  .tar.gz files cannot be appended to. "C:\btm\check.btm"

The command creates arch.tar.gz, which contains only the first file in the list, in this case RegTweaks.btm
--
Peter
 
Similar threads
Thread starter Title Forum Replies Date
P Can't disable internal tar, at least in pipes Support 3
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
N Unable to bind multiple keys to the same key mapping directive Support 9
vefatica Console not redrawn in BTM or with multiple commands Support 4
C duplicate files in multiple plugin sites Support 9
kb6ojs ALIAS with multiple commands? Support 9
vefatica How do I do this with a multiple-line DO? Support 7
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
R How to? Append files in multiple subfolders using copy? Support 8
N multiple command alias and redirection Support 0
B Can copy command concatenate multiple mp3 files Support 2
C INSTALLED returnes same program multiple times Support 14
M Delete multiple Alternate Datastreams Support 5
D What are the rules for detecting multiple versions of TC on a machine? Support 7
C FOLDERMONITOR inactive with multiple /I Support 1
C WAD VIEW print multiple files - switches fail Support 10
vefatica Multiple instances of help file Support 3
J How to? Array sort according to multiple keys Support 3
Alexander WAD The number of files and dirs are multiplied when using multiple wildcards Support 6
Jay Sage Version 17 Installer Leaves Multiple Copies of ShrAlias Support 48
R Fixed Internal ZIP command fails to process multiple files Support 3
M How to? PDir on multiple wildcard patterns... Support 2
A WAD Dir daterange + multiple path wildcards crashes tcc Support 2
T How to? Using FOLDERMONITOR 1 event causes multiple trigger(ing)s Support 8
samintz How to? Pull out multiple matching lines Support 5
D WAD Multiple TEE causese weird variable scoping? Support 7
L "for" in multiple lines Support 2
Frank VIEWing multiple files possible? Support 4
J syntax problems multiple commands (command & command) Support 4
J How do I - ffind - with multiple items Support 10
R multiple monitor 'help' Support 7
H Another multiple FTP password prompt issue Support 2
J tcmd height with multiple monitors Support 2
T Open & Configure multiple TCC windows on STARTUP Support 4
fpefpe How to? shortcuts and batch files Support 4
C v28 key files Support 2
J ffind does not find files Support 4
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
S How to? Deinstalling TC/reinstating execution of bat files by cmd in Win7 Support 31
vefatica FFIND, temp files? ... not deleted? Support 0
R FUNCTION to count NUMBER of files matching a pattern and specific length/not length Support 4
vefatica Tmp files from in-process pipes not deleted Support 6
vefatica Finding files with alternate data streams? Support 4
rps Multi-column DIR /v not displaying all files. Support 5
D How to skip files in a fileset? Support 6
vefatica PIPEVIEW leaves TMP files Support 18
K "copy /z /w" command not deleting read-only files in destination Support 10
Jesse Heines "Taken" date for JPG and PNG files Support 4
O I cannot use links to .btm files Support 5
C How to? rename files with spaces Support 8

Similar threads