Winrar y Winzip

Iniciado por CrashIIX, 11 Enero 2007, 19:39 PM

0 Miembros y 1 Visitante están viendo este tema.

CrashIIX

Alguien sabe donde hay tutos para usar las dll de winrar y winzip en vb?

dPix

Métete mediante consola al winzip y mira las opciones que tiene desde ahí. De esa forma podrías usar una shell llamando al winzip y utilizando comandos. Mira a ver si te funciona.

Salu2,

dPix

CeLaYa

a ver si esto te sirve, lo saque de la ayuda de "Winzip Command Line"

Using the WinZip Command Line Support Add-On
The WinZip Command Line Support Add-On is used by executing a command that starts WZZIP or WZUNZIP. There are three "places" where you can use the Add-On:

·   In a command window, sometimes known as a DOS window or DOS box.  This is a separate window that is normally started by selecting "MS-DOS Prompt" or "Command Prompt" from the Start menu; it normally displays the C> prompt.
·   From the Run dialog, accessed from the Start menu.
·   In batch files or other scripts (such as application program macros).

The exact format of the command depends on which of these you use.

Using a command window

You can use the Add-On in a command window in any of these ways:

·   You can type the full name of the WinZip folder followed by the name of the command, which is either "WZZIP" (for zipping) or "WZUNZIP" (for unzipping), followed by the parameters necessary for the operation.  For example, if you installed WinZip into the C:\Program Files\WinZip folder and you want to list the contents of MyFile.zip, you might type:

   "c:\program files\winzip\wzzip" -v MyFile.zip

(Note that you must use quotes around the command name if the name of the folder includes spaces, as shown above.  Otherwise, the quotes are not necessary.)

·   You can copy WZZIP.EXE and WZUNZIP.EXE to a folder specified in your PATH environment variable.  Then you can run the commands by simply typing "WZZIP" or "WZUNZIP" and the desired parameters, without the name of the WinZip folder:

   wzzip -v filename.zip
·   You can add the WinZip folder to your PATH environment variable, for example:

   set path=c:\windows;"c:\program files\winzip";...

If you have done this, you can run the commands at the system prompt by simply typing "WZZIP" or "WZUNZIP" followed by the desired parameters, without the name of the WinZip folder:

   wzzip -v filename.zip

(For information on the PATH environment variable, please refer to your Windows documentation.  If you use this method regularly, you will probably want to edit AUTOEXEC.BAT so that the WinZip folder is permanently added to the PATH environment variable.)


Using the Run dialog

You can use WZZIP.EXE and WZUNZIP.EXE from the Run dialog by simply typing the command name and any desired parameters.  It is not necessary to include the WinZip folder, but you may need to specify the folder for the files you wish to work with.  For example:


wzzip -yp -v c:\temp\filename.zip

We recommend using the -yp option to keep the MS-DOS command prompt window from closing automatically; otherwise, you will not have much time to look at the results of your command.

Using batch files

You can use WZZIP.EXE and WZUNZIP.EXE in MS-DOS batch files using the same rules as shown above for command windows.

The procedure will be similar for script processors other than MS-DOS batch files (application program macros, for example).  However, check your documentation for information on how paths should be specified.

Using return codes (errorlevels)

WZZIP and WZUNZIP will in most cases return a nonzero errorlevel in the event of a serious error; otherwise, an errorlevel of 0 is returned. You can use these return codes in batch files and other automated processing.  For example:

wzzip filename.zip *.doc
   If Not ErrorLevel 1 Goto Exit
   Echo ***SERIOUS ERROR DETECTED***
   :Exit

Copyright © 2004 WinZip Computing, Inc.  All rights reserved.
"La soledad es el elemento de los grandes talentos".
Cristina de Suecia (1626-1689) Reina de Suecia.