Open winzip with a file as agument

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Guest

Open winzip with a file as agument

Post by Guest » Tue Feb 24, 2004 4:40 pm

How can I open the winzip with a file

// C:\Program Files\MJT Net Ltd\Macro Scheduler\ACD300_1.scp
// Recorded on tirsdag, februar 24, 2004, at 08:54 AM

//Recorded Events
GetFileList>C:\Documents and Settings\SKN\Desktop\Test\*.*.Z,files
Separate>files,;,file_names
//MessageModal>Num Files: %file_names_count%

Let>k=0
Repeat>k
Let>k=k+1
// Message>file_names_%k%
Message>file_names_%k%
Let>filer='file_names_%k%'
Run Program>WINZIP32.EXE 'file_names_%k%'
WaitWindowOpen>WinZip
Press CTRL
Send Character/Text>a
Press Enter
Wait>300

CloseWindow>WinZip

Until>k,file_names_count

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Feb 24, 2004 8:15 pm

There is a command line utility available from WinZip.

I downloaded wzbetacl.exe on 5/22/03 from http://www.winzip.com/wzclineb.cgi. This was a version for use with WinZip, Beta Version 9.


There was a file WZCLINE.EXE for earlier versions of WinZip. This is from the imbedded ReadMe file:
===================================
WinZip(R) Command Line Support Add-On Version 1.0 (build 3181)
Copyright (C) 1991-2000 WinZip Computing, Inc.
All Rights Reserved

Thank you for your interest in the WinZip Command Line Support Add-On

This Add-On is covered by the license agreement below.

Full documentation is in the WZCLINE.HLP file.

*** Requirements ***

This WinZip Add-on requires WinZip 8.0 and Windows 95,98,
NT 4.0 or 2000.

*** Installation ***

Select Run from the Taskbar Start menu, type the full name of the
file (for example, C:\DNLOAD\WZCLINE.EXE), press the Enter key,
and follow the prompts.
================================
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Lumumba

Post by Lumumba » Tue Feb 24, 2004 9:24 pm

The native de/encryption tool is (still) Pkzip & Pkunzip: Download 8) which could be used with Macro Scheduler without any problem

Run Program> cmd /c pkzip ...

PKZIP for DOS

Will I be able to unzip a program with Winzip I zipped in PKZIP?

Assuming the file was zipped correctly any file with the .zip extension will be able to be pkunziped as will as unzipped in Winzip or any other compression utility that is able to read .zip extensions.

Check this listing of available switches used at the command line:
PKUNZIP (R) FAST! Extract Utility Version 2.04g 02-01-93
Corp. 1989-1993 PKWARE Inc. All Rights Reserved. Registered version
PKUNZIP Reg. U.S. Pat. and TM. Off.

-----

Usage: PKUNZIP [options] zipfile [@list] [files...]

-c[m] Extract files to Console [with More]
-d Restore/create Directory structure stored in .ZIP file
-e[c|d|e|n|p|r|s] Extract files. Sort by [CRC | Date | Extension | Name| Percentage | Reverse | Size]
-f Freshen files in destination directory
-j|J Mask|don't mask files (def.=jhrs)
-n Extract only Newer files.
-o Overwrite previously existing files.
-p[a/b][c][#] Extract to Printer [Asc mode,Bin mode,Com port] [port #]
-q Enable ANSI comments
-s[pwd] Decrypt with password [If no pwd is given, prompt for pwd]
-t Test .ZIP file integrity
-v[r][m][t] View .ZIP [Brief][Reverse][More][Technical] sort by [CR.|
[c,d,e,n,o,p,s] Date|Extension|Name|natural Order(default)|Percentage|Size]
-x Exclude file(s) from extraction
-$ Restore volume label on destination drive.
-@listfile Generate list file


How do I ZIP files that are larger then one diskette onto multiple diskettes?

To do this you would use the following syntax:

pkzip [directory] [diskfilename] -&.

Example:

pkzip c:\windows\*.* a:\windows.zip -&.

The -& is the important part of the above line and is telling pkzip to place your files onto multiple disks.

Guest

Try it but didden work

Post by Guest » Tue Feb 24, 2004 10:44 pm

Is a unix file that is compress from unix

I got this error.

Zip file: 42010000.365.Z
End-of-central-directory signature not found. Either this file is not a Zip f
ile, or it constitutes one disk of a multi-part Zip file.

If select only one file and open it with winzip then it works.

I have to unzip 1600 file :-(


bob hansen wrote:There is a command line utility available from WinZip.

I downloaded wzbetacl.exe on 5/22/03 from http://www.winzip.com/wzclineb.cgi. This was a version for use with WinZip, Beta Version 9.


There was a file WZCLINE.EXE for earlier versions of WinZip. This is from the imbedded ReadMe file:
===================================
WinZip(R) Command Line Support Add-On Version 1.0 (build 3181)
Copyright (C) 1991-2000 WinZip Computing, Inc.
All Rights Reserved

Thank you for your interest in the WinZip Command Line Support Add-On

This Add-On is covered by the license agreement below.

Full documentation is in the WZCLINE.HLP file.

*** Requirements ***

This WinZip Add-on requires WinZip 8.0 and Windows 95,98,
NT 4.0 or 2000.

*** Installation ***

Select Run from the Taskbar Start menu, type the full name of the
file (for example, C:\DNLOAD\WZCLINE.EXE), press the Enter key,
and follow the prompts.
================================

Lumumba

Post by Lumumba » Wed Feb 25, 2004 12:02 am

GZip (don't work hard - work smart :wink: )

- Compressing A File

- Decompressing A File

- Manual


- Download

Lumumba

Post by Lumumba » Wed Feb 25, 2004 12:38 am

"... complains about a multi-part gzip file ... " [read more]

"... and Winzip include the gzip compression code and can decompress .gz and tar.gz files..."

So, if it has worked with Winzip it should work with g(un)zip either.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Feb 25, 2004 8:53 am

If you want to automate WinZip it's much easier to first get the free WinZip command line extension so that you can run it like PKZIP from the command line. Then you don't have to automate it's GUI - just use Run> and the relevant command line switches and filenames. I believe there is an example at http://www.mjtnet.com/scripts.hts and get the command line extension at http://www.winzip.com
MJT Net Support
[email protected]

Lumumba

Post by Lumumba » Wed Feb 25, 2004 12:36 pm

Well, the difference ...
This WinZip Add-on requires WinZip 8.0 and Windows 95,98,
NT 4.0 or 2000.
GZip requires nothing (well, a commandline :roll: )

WinZip is shareware
GZip is freeware
WinZip is assigned to a plattform
GZip is cross plattform
WinZip&AddOn needs drive space
GZip needs drive space too, but less
WinZip(&AddOn) needs an installation
GZip runs from scratch

So what ...? :?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Feb 25, 2004 9:38 pm

support wrote:
I believe there is an example


Here is an example that runs weekly for me on WIN2K system:
Run Program>cmd /c c:\program files\winzip\wzunzip -ybc -s%FTPPW% %ftpfilename3%.zip
This uses the command line utility. It unzips a password protected file that was downloaded from an FTP site.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Guest

This is working

Post by Guest » Fri Feb 27, 2004 10:37 am

Now I make a test with gzip and this i working

Thanks :D

WinZip and PkZip did not work :(
Lumumba wrote:Well, the difference ...
This WinZip Add-on requires WinZip 8.0 and Windows 95,98,
NT 4.0 or 2000.
GZip requires nothing (well, a commandline :roll: )

WinZip is shareware
GZip is freeware
WinZip is assigned to a plattform
GZip is cross plattform
WinZip&AddOn needs drive space
GZip needs drive space too, but less
WinZip(&AddOn) needs an installation
GZip runs from scratch

So what ...? :?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts