7zip

I am using;
Code:
c:\users\jlc\documents>ver

TCC  24.02.46 x64   Windows 7 [Version 6.1.7601]
About a week or so ago, the following batch file started producing;
Code:
Cancel batch job C:\Users\jlc\utils\7zac.btm ? (Y/N/A) : N
after completing. It has been running with no problem up until a week or so ago for several years.

Here's the .BTM file;
Code:
@setlocal
@echo off
7zip /A /P c:\utils\AC.7z "docs:\Adult_Contemporary.rnt"
endlocal
...and here's the run;
Code:
c:\users\jlc\utils>7zac
<= C:\Users\jlc\Documents\Adult_Contemporary.rnt
  100 %
Cancel batch job C:\Users\jlc\utils\7zac.btm ? (Y/N/A) : N
This is the file;
Code:
3/30/2019  15:29   2,291,487,744  Adult_Contemporary.rnt
...which is a RightNote file which I have been adding to every day for well over a year.

The only other thing that has changed, is that I have been updating TCMD whenever a new update becomes available.

Note that this only occurs from a .BTM file, but NOT from the command line.

The created AC.7z file is valid, extracting Adult_Contemporary.rnt from AC.7z is valid, and I can use the extracted Adult_Contemporary.rnt file with RightNote no problems.

I have also tried without the /A option, same result.

Note that 7zip is an internal command;
Code:
c:\users\jlc\utils>which 7zip
7zip is an internal command
If I change the .BTM to use 7z.exe;
Code:
@setlocal
@echo off
which 7z
7z a -t7z c:\utils\AC.7z "c:\users\jlc\documents\Adult_Contemporary.rnt"
endlocal
...it returns;
Code:
c:\users\jlc\utils>7zac
7z is an external : C:\ProgramData\chocolatey\bin\7z.exe

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive:
1 file, 2291487744 bytes (2186 MiB)

Creating archive: c:\utils\AC.7z

Add new data to archive: 1 file, 2291487744 bytes (2186 MiB)


Files read from disk: 1
Archive size: 202475565 bytes (194 MiB)
Everything is Ok
...and no;
Code:
Cancel batch job C:\Users\jlc\utils\7zac.btm ? (Y/N/A) : N
...is returned.

Note that the AC.7z file is copied to another device, and then deleted, thus a new AC.7z is created each day.

Joe
 
I changed my .BTM to display the 7ZIP internal variable results;
Code:
c:\users\jlc\utils>type 7zac.btm
@setlocal
@echo off
which 7zip
::7z a -t7z c:\utils\AC.7z "c:\users\jlc\documents\Adult_Contemporary.rnt"
7zip /A /P c:\utils\AC.7z "docs:\Adult_Contemporary.rnt"
echo _7zip_files : %_7zip_files
echo _7zip_errors: %_7zip_errors
endlocal
...which produced
Code:
c:\users\jlc\utils>7zac
7zip is an internal command
<= C:\Users\jlc\Documents\Adult_Contemporary.rnt
  100 %
Cancel batch job C:\Users\jlc\utils\7zac.btm ? (Y/N/A) : N
_7zip_files : 1
_7zip_errors: 0
Joe
 
May 20, 2008
9,445
63
Syracuse, NY, USA
I noticed two things when trying to test this. Canceling a 7ZIP command with Ctrl-C ...

1. leaves an open handle to the file being added to the archive.
2. leaves TCC with an enormous working set (after canceling the addition of a 2GB file to an archive, after about a minute, TCC's workset was nearly half a GB).
 

rconn

Administrator
Staff member
May 14, 2008
11,021
98
I changed my .BTM to display the 7ZIP internal variable results;
Code:
c:\users\jlc\utils>type 7zac.btm
@setlocal
@echo off
which 7zip
::7z a -t7z c:\utils\AC.7z "c:\users\jlc\documents\Adult_Contemporary.rnt"
7zip /A /P c:\utils\AC.7z "docs:\Adult_Contemporary.rnt"
echo _7zip_files : %_7zip_files
echo _7zip_errors: %_7zip_errors
endlocal
...which produced
Code:
c:\users\jlc\utils>7zac
7zip is an internal command
<= C:\Users\jlc\Documents\Adult_Contemporary.rnt
  100 %
Cancel batch job C:\Users\jlc\utils\7zac.btm ? (Y/N/A) : N
_7zip_files : 1
_7zip_errors: 0
Joe
I'm unable to reproduce the problem here.

Does this only happen with this one .7z file?
 
I tried a much larger file;
Code:
 3/30/2019  20:55   6,454,547,456  Windows 98SE Hard Disk.vhd
...which gave me
Code:
c:\users\jlc\documents\my virtual machines\w98>7zac
7zip is an internal command
<= C:\Users\jlc\Documents\My Virtual Machines\W98\Windows 98SE Hard Disk.vhd
_7zip_files : 1
_7zip_errors: 0
Errors: 0 0
...and did not give me the
Code:
Cancel batch job C:\Users\jlc\utils\test7z.btm ? (Y/N/A) : N
...message.

As I said before, the AC.7z file is fine after being created, it's just that annoying "Cancel batch job" that appears after the AC.7z file is created.

Joe