Fixed Internal ZIP command fails to process multiple files

Apr 18, 2014
362
10
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
 
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