Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Recommend a ZIP and UNZIP for command prompt in 64-bit Windows 7

1,507 views
Skip to first unread message

Dr J R Stockton

unread,
Aug 11, 2015, 6:35:15 PM8/11/15
to
This concerns another aspect of moving from Windows 3/98/XP to 64-bit
Windows 7.

For another form of backup/transfer, using in a batch file the
"command"s ZIP and UNZIP. That system dates from about 1998. I have
realised that those "command"s use an ancient ZIP package, perhaps
recommended by Timo in about 1998, and using 16-bit code.

So I need a new command-line ZIP and UNZIP, preferably 32-bit code,
preferably with the same arguments as whatever I now actually use.

Part of a ZIPping batch file is

del progging.zip
ZIP progging pas*.htm bat*.htm ????calc.htm prog2000.htm -x $*.*
ZIP progging tmt*.htm del*.htm r_r*.txt index.htm t?c.htm -x $*.*

I also use UNZIP -L filename .

Any suggestions as to what I should use and where to download it from?

--
(c) John Stockton, nr London UK. DOS 3.3, 6.20; WinXP, Win7.
Web <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms and links.
PAS EXE TXT ZIP via <http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.

Mark Blain

unread,
Aug 11, 2015, 7:46:39 PM8/11/15
to
Dr J R Stockton <J.R.St...@physics.org> wrote in
news:cDkfrEaQ...@invalid.uk.co.demon.merlyn.invalidmerlyn.demon.
co.uk:

> This concerns another aspect of moving from Windows 3/98/XP to
> 64-bit Windows 7.
>
> For another form of backup/transfer, using in a batch file the
> "command"s ZIP and UNZIP. That system dates from about 1998. I
> have realised that those "command"s use an ancient ZIP package,
> perhaps recommended by Timo in about 1998, and using 16-bit code.
>
> So I need a new command-line ZIP and UNZIP, preferably 32-bit
> code, preferably with the same arguments as whatever I now
> actually use.
>
> Part of a ZIPping batch file is
>
> del progging.zip
> ZIP progging pas*.htm bat*.htm ????calc.htm prog2000.htm -x
> $*.* ZIP progging tmt*.htm del*.htm r_r*.txt index.htm t?c.htm
> -x $*.*
>
> I also use UNZIP -L filename .
>
> Any suggestions as to what I should use and where to download it
> from?

From the syntax it appears you were using INFO-ZIP tools. That's
outdated and no longer being developed, so I would not recommend it.
If you insist:
http://www.info-zip.org/mans/unzip.html
ftp://ftp.info-zip.org/pub/infozip/win32/unz600xn.exe
http://www.info-zip.org/mans/zip.html
ftp://ftp.info-zip.org/pub/infozip/win32/zip300xn.zip

A better alternative would be 7-ZIP. You may have to change your
code slightly, but command-line and standalone versions are readily
available, AND it can open more modern zip files not supported by
INFO-ZIP.
http://www.7-zip.org/download.html

foxidrive

unread,
Aug 11, 2015, 7:53:07 PM8/11/15
to
On 12/08/2015 09:46, Mark Blain wrote:
> Dr J R Stockton <J.R.St...@physics.org> wrote in
> news:cDkfrEaQ...@invalid.uk.co.demon.merlyn.invalidmerlyn.demon.
> co.uk:
>
>> So I need a new command-line ZIP and UNZIP, preferably 32-bit
>> code, preferably with the same arguments as whatever I now
>> actually use.

> A better alternative would be 7-ZIP. You may have to change your
> code slightly, but command-line and standalone versions are readily
> available, AND it can open more modern zip files not supported by
> INFO-ZIP.
> http://www.7-zip.org/download.html

+1

7-zip is what I use here too.


JJ

unread,
Aug 12, 2015, 7:47:35 AM8/12/15
to
On 11 Aug 2015 23:46:38 GMT, Mark Blain wrote:
>
> From the syntax it appears you were using INFO-ZIP tools. That's
> outdated and no longer being developed, so I would not recommend it.

Um... its project is still active.
It already support Zip64/Deflate64 and is a stable software.
Meaning that it already support the latest ZIP technology.
There's no more update since there's nothing more to add or fix.

It's outdated, yes.
But that's because the ZIP archive itself is old.

If there'll be new feature added to the ZIP, I'm sure there'll be new
update(s) to Info-ZIP.

npocmaka

unread,
Aug 12, 2015, 10:29:55 AM8/12/15
to

jgq...@gmail.com

unread,
Aug 13, 2015, 6:50:09 AM8/13/15
to
On, I hope, the same topic, can anyone recommend a command-line ZIP/UNZIP program which optionally handles the UNC naming convention as well as drive letters?

I would want to do something like
SomeZip \\sourceserver\shareA\folder\*.* \\targetserver\shareB\zipfile.zip

rather than being forced to use
net use T: \\targetserver\shareB
SomeZip C:\shareA\folder\*.* T:\shareB\zipfile.zip

I am unclear whether 7-Zip would support this...

Scion

unread,
Aug 21, 2015, 9:22:50 AM8/21/15
to
jgqued put finger to keyboard:
7-zip supports UNC paths.

mokomoji

unread,
Aug 21, 2015, 11:47:12 AM8/21/15
to
2015년 8월 12일 수요일 오전 7시 35분 15초 UTC+9, Dr J R Stockton 님의 말:
http://www.estsoft.com/altools

windows 7 version
C:\Program Files (x86)\ESTsoft\ALZip
compression = ALZipCon.exe -a "targetpath\*.*" filename.zip
disbandment = ALZipCon.exe -x filename.zip "targetpath\*.*"


uznip <---- no no no no no
pkunzip <-------disbandment
pkzip <----- compression


Dr J R Stockton

unread,
Dec 27, 2015, 6:42:07 PM12/27/15
to
In alt.msdos.batch.nt message <cDkfrEaQ...@invalid.uk.co.demon.merl
yn.invalidmerlyn.demon.co.uk>, Tue, 11 Aug 2015 22:43:44, Dr J R
Stockton <J.R.St...@physics.org> posted:

>This concerns another aspect of moving from Windows 3/98/XP to 64-bit
>Windows 7.
>
>For another form of backup/transfer, using in a batch file the
>"command"s ZIP and UNZIP. That system dates from about 1998. I have
>realised that those "command"s use an ancient ZIP package, perhaps
>recommended by Timo in about 1998, and using 16-bit code.
>
>So I need a new command-line ZIP and UNZIP, preferably 32-bit code,
>preferably with the same arguments as whatever I now actually use.
>
>Part of a ZIPping batch file is
>
> del progging.zip
> ZIP progging pas*.htm bat*.htm ????calc.htm prog2000.htm -x $*.*
> ZIP progging tmt*.htm del*.htm r_r*.txt index.htm t?c.htm -x $*.*
>
>I also use UNZIP -L filename .
>
>Any suggestions as to what I should use and where to download it from?

Well, I eliminated any suggestions that got me confused (directly or
indirectly), and, being left with nothing, looked around the Web again.
I found, at

<http://stackoverflow.com/questions/27273334/batch-script-to-zip-a-
folder-without-using-external-softwares?lq=1>

a batch file (my version is ZYP.BAT) that incorporated and called
JScript code which included the lines

zip = shl.NameSpace(fso.GetFile(outfile).Path);
....
zip.CopyHere(zipThis);

That works in WinXP and Win7, so maybe it works in Win10.

It is slower than my earlier method, and does compress quite so much,
but those do not matter. Windows itself decompresses - not with the
convenience of Batch, but I expect to decompress very infrequently.

8<----
@if (@a==@b) @end /* JScript ignores this multiline comment

:: :: BATCH SETUP CODE

cscript /nologo /e:Jscript "%~f0" !args!

goto :EOF

:: end of batch portion / begin JScript portion */

JScript compression code
---->8

So part of the corresponding command-line batch file is

@del PRGGNG.ZIP
@del $$PRGG??.ZIP 2> nul

CALL ZYP -o $$PRGG01.ZIP index.htm t?c.htm inc-*.js styles-a.css
CALL ZYP -o $$PRGG02.ZIP pas-*.htm
CALL ZYP -o $$PRGG03.ZIP pascal.htm bat*.htm ????calc.htm prog2000.htm

CALL ZYP -o PRGGNG.ZIP PRGGNG.BAT $$PRGG??.ZIP

So far, all is well enough.

--
(c) John Stockton, Surrey, UK. 拯merlyn.demon.co.uk Turnpike v6.05 MIME.
Merlyn Web Site < > - FAQish topics, acronyms, & links.


Mark Blain

unread,
Dec 27, 2015, 10:41:21 PM12/27/15
to
Dr J R Stockton <J.R.St...@physics.org> wrote in
news:cDkfrEaQ...@invalid.uk.co.demon.merlyn.invalidmerlyn.demon.
co.uk:

> I need a new command-line ZIP and UNZIP, preferably 32-bit
> code, preferably with the same arguments as whatever I now
> actually use.

7-Zip is a reliable choice. There are actually two command-line
versions: one included with the GUI version, and a smaller standalone
version downloadable separately. The arguments aren't identical to
yours.
http://www.7-zip.org/download.html

It appears that you may have been using old info-zip programs. Those
are still available, but they are no longer maintained. Not
recommended.
http://sourceforge.net/projects/infozip/files
0 new messages