Fixed Internal ZIP command fails to process multiple files

Apr 18, 2014
299
9
TCC 16.03.53 x64 Windows 7 [Version 6.1.7601]
TCC Build 53 Windows 7 Build 7601 Service Pack 1

I have a script that uses the internal TCC ZIP command. I last used it on the 12th June 2014 and it was working, so this problem has been introduced in a build released since then.

After running the ZIP command, irrespective of the number of files that the command has processed only one file is included in the resulting archive.

Code:
d:\temp>dir foobar.zip

Volume in drive D is unlabeled      Serial number is 6882:65c2
TCC: (Sys) The system cannot find the file specified.
"D:\Temp\foobar.zip"
                 0 bytes in 0 files and 0 dirs
1,914,297,692,160 bytes free

d:\temp>dir test*.jpg

Volume in drive D is unlabeled      Serial number is 6882:65c2
Directory of  D:\Temp\test*.jpg

30/10/2011  15:28          88,181  test_1.jpg
15/01/2012  15:00         172,556  test_2.jpg
20/04/2012  12:21         198,849  test_3.jpg
20/04/2012  14:15         172,687  test_4.jpg
20/05/2012  11:22         182,307  test_5.jpg
           814,580 bytes in 5 files and 0 dirs    827,392 bytes allocated
1,914,297,692,160 bytes free

d:\temp>zip foobar.zip test*.jpg
<= D:\Temp\test_1.jpg
<= D:\Temp\test_2.jpg
<= D:\Temp\test_3.jpg
<= D:\Temp\test_4.jpg
<= D:\Temp\test_5.jpg

d:\temp>unzip /test foobar.zip
test_5.jpg : OK

d:\temp>unzip /v foobar.zip
2012-05-20  11:22        182,307    1%  test_5.jpg

d:\temp>echo %_zip_files
1
 
Apr 18, 2014
299
9
The same problem affects the 7ZIP command:

Code:
d:\temp>dir foobar.7z

Volume in drive D is unlabeled      Serial number is 6882:65c2
TCC: (Sys) The system cannot find the file specified.
"D:\Temp\foobar.7z"
                 0 bytes in 0 files and 0 dirs
1,914,297,180,160 bytes free

d:\temp>dir test*.jpg

Volume in drive D is unlabeled      Serial number is 6882:65c2
Directory of  D:\Temp\test*.jpg

30/10/2011  15:28          88,181  test_1.jpg
15/01/2012  15:00         172,556  test_2.jpg
20/04/2012  12:21         198,849  test_3.jpg
20/04/2012  14:15         172,687  test_4.jpg
20/05/2012  11:22         182,307  test_5.jpg
           814,580 bytes in 5 files and 0 dirs    827,392 bytes allocated
1,914,297,180,160 bytes free

d:\temp>7zip foobar.7z test*.jpg
<= D:\Temp\test_1.jpg
<= D:\Temp\test_2.jpg
<= D:\Temp\test_3.jpg
<= D:\Temp\test_4.jpg
<= D:\Temp\test_5.jpg

d:\temp>echo %_7zip_files
1

d:\temp>7unzip /v foobar.7z
2012-05-20  11:22        182,307 test_5.jpg

d:\temp>7unzip /test foobar.7z
test_5.jpg : OK
 
Similar threads
Thread starter Title Forum Replies Date
mikea Questions re: Internal ZIP command Support 5
fpefpe How to? free (internal) command Support 0
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
T Returning a value from internal Lua scripts to TCC Support 2
rps For loop internal %_for_files variable? Support 2
Joe Caverly Why does TCCRT return VIEW as an internal command? Support 6
F How to? Disable TCC's internal response to Alt-F4 Support 8
vefatica @EVAL's internal precision? Support 9
jfalch WAD internal "which" should check for FILEEXIST when using AppPaths entry Support 8
P Can't disable internal tar, at least in pipes Support 3
M Keywords for commands, functions, internal variables Support 3
D WAD Internal variable _cpu is undefined Support 2
E View (internal command) does nothing now Support 3
D Minor problem. Incorrect value internal var _dir_files Support 7
jbanaszczyk Alias for internal command Support 8
Joe Caverly Internal Lua and require Support 0
D Internal variable _tctabs within TCExit Support 9
epement no internal help for 'v' in TCmd v14 Support 6
R Override TCC internal commands Support 2
H [4NT8] Internal Start-command and _? variable Support 5
G 4NT 9.02 _shell internal variable Support 50
C Documentation Help nix ZIP /M Support 0
Chen Touboul Failed to ZIP Support 9
I zip /M fails to delete file after adding to zip file Support 2
Joe Caverly 7zip command links to zip help Support 0
T How to? ZIP/7ZIP @listfile with folders Support 2
Joe Caverly UNZIPping older .ZIP files Support 3
M Is the sdk.zip file corrupted? Support 8
C ZIP/U compares wrong timestamp Support 13
C ZIP Support 0
vefatica ZIP? Support 13
D Zip errors on large files. Support 4
C ZIP .vs. PkZip Support 21
S How to? Set the timestamp of ZIP command built archive to match latest member Support 8
C ZIP behavior Support 5
Frank ZIP: howto store directory in the zip-file Support 20
vefatica ZIP /U a little screwy Support 9
J zip wrong central directory signature Support 12
C Vince - your FTP'ed jpsupport.zip's Support 1
ehab aboudaya WAD starting tcmd.exe with dir that has Boost C++ Libraries zip file delays Support 2
T Paths in ZIP Support 1
fpefpe zip command file size Support 1
T Zip and reparse points Support 7
J ZIP Help - minor quibble Support 0
H V12 Zip encryption Support 1
S ZIP support in next version? Support 1
vefatica ZIP's informative output Support 1
D Zip /q Support 0
H ZIP/UNZIP issues Support 4
S Version 11 ZIP /V - Permission denied on Network drive Support 2

Similar threads