Thanks for the hint.
zipper 0.2 :Zip A Directory
https://wiki.tcl-lang.org/page/Zip+A+Directory
zipper 0.12 : Using zipper to create zip files
https://wiki.tcl-lang.org/page/Using+zipper+to+create+zip+files
zipper 0.11 : zipper 0.
https://equi4.com/critlib/
my Example examplezipper.tcl
#! /usr/bin/env wish
# hello.txt and hello.zip are deleted for the program!
# zipper.tcl 0.2
#
https://wiki.tcl-lang.org/page/Zip+A+Directory
# under Ms Windows :in zipper.tcl : proc zcopy : catch {file attributes ${to} -permissions ${mode}}
#
source zipper.tcl
catch {
package require tkcon
tkcon show
}
set srcfile hello.txt
set destfile hello.zip
set destdir [file normalize "./"]
set move 0
catch { file delete $destfile}
close [open $srcfile a]
set f [open $srcfile r]
fconfigure $f -translation binary
zipper::initialize [open $destfile w]
zipper::addentry $srcfile [read $f]
close $f
close [zipper::finalize]
set dir [glob *.*]
puts "before: $dir"
catch [file delete $srcfile]
set dir [glob *.*]
puts "after: $dir"
set zipcontent [zipper::zstat $destfile]
puts "zipcontent: $zipcontent"
zipper::unzip $destfile $destdir