Utiliser Winzip directement depuis un prog VB

jujuljujul Messages postés 1 Date d'inscription jeudi 18 juillet 2002 Statut Membre Dernière intervention 18 juillet 2002 - 18 juil. 2002 à 12:22
x140 Messages postés 10 Date d'inscription jeudi 6 février 2003 Statut Membre Dernière intervention 19 décembre 2007 - 22 nov. 2005 à 09:43
Bonjour
En fait je souhaiterai Utiliser Winzip directement depuis un prog VB, comme on peut le faire avec EXCEL ou WORD.
Je vous remercie de votre aide !
cordialement,
ju

5 réponses

cs_Florent Messages postés 53 Date d'inscription jeudi 20 décembre 2001 Statut Membre Dernière intervention 22 novembre 2005
18 juil. 2002 à 12:39
Je pense que c'est impossible, mais tu peux par contre utiliser cette source : http://www.vbfrance.com/article.aspx?Val=5158

Florent
0
cs_Florent Messages postés 53 Date d'inscription jeudi 20 décembre 2001 Statut Membre Dernière intervention 22 novembre 2005
18 juil. 2002 à 12:40
Je pense que c'est impossible, mais tu peux par contre utiliser cette source.

Florent
0
MichelTissot Messages postés 1 Date d'inscription vendredi 7 février 2003 Statut Membre Dernière intervention 8 février 2003
8 févr. 2003 à 19:51
-------------------------------
Réponse au message :
-------------------------------

> Bonjour
> En fait je souhaiterai Utiliser Winzip directement depuis un prog VB, comme on peut le faire avec EXCEL ou WORD.
> Je vous remercie de votre aide !
> cordialement,
> ju
0
cs_Zoltan67 Messages postés 91 Date d'inscription mercredi 18 décembre 2002 Statut Membre Dernière intervention 25 juin 2003 1
6 juin 2003 à 16:44
tu fais un shell ("c:\program files\winzip\winzip32 ")
et tu passes les commandes que tu veux, les voici ( en anglais, mais g la flemme de traduire...

'Adding Files:
'The command format is:
'winzip[32].exe [-min] action [options] filename[.zip] files
'where:
'-min specifies that WinZip should run minimized. If -min is specified,
'it must be the first command line parameter.
'Action
'-a For add, -f for freshen, -u for update, and -m for move. These
'actions correspond To the actions described In the section titled
'"Adding files To an Archive" in the online manual.
'Options
'-r and -p correspond To the "Recurse Directories" and "Save Extra
'Directory Info" checkboxes in the Add and Drop dialog boxes. -ex, -en,
'-ef, -es, and -e0 options determine the compression method: eXtra,
'Normal, Fast, Super fast, and no compression. The default is "Normal".
'-s allows specification of a password. The password can be enclosed
'In quotes, For example, -s"Secret Password". Note that passwords are
'case-sensitive.
'-hs option allows hidden and system files To be included.
'FileName.zip
'Specifies the name of the ZIP involved. Be sure To use the full
'filename (including the directory).
'Files
'Is a list of one or more files, or the @ character followed by the
'filename containing a list of files To add, one filename per line.
'Wildcards (e.g. *.bak) are allowed.
'Extracting Files:
'The command format is:
'winzip[32].exe -e [options] filename[.zip] directory
'where:
'-e Is required.
'Options
'-o and -j stand For "Overwrite existing files without prompting" and
'"Junk pathnames", respectively. Unless -j is specified, directory
'information is used.
'-s allows specification of a password. The password can be enclosed
'In quotes, For example, -s"Secret Password". Note that passwords are
'case-sensitive.
'FileName.zip
'Specifies the name of the ZIP involved. Be sure To specify the full
'filename (including the directory).
'directory
'Is the name of the directory to which the files are extracted. If the
'directory does Not exist it is created.
'Notes:
'* VERY IMPORTANT: Always specify complete filenames, including the full
'path name and drive letter, For all file IDs.
'* To run WinZip in a minimized inactive icon use the "-min" option.
'When specified this option must be the first option.
'* Only operations involving the built-in zip and unzip are supported.
'* Enclose Long filenames on the command line in quotes.
'* NO leading or trailing blanks, or blank lines For readability, are
'allowed In list ("@") files.
'* The action and Each option on the command line must be separated
'from the others by at least one space.
'* WinZip can be used To compress files With cc:Mail . Change the
'compress= line in the [cc:Mail] section of the appropriate WMAIL.INI
'files To specify the full path For WinZip followed by "-a %1 @%2".
'
'
'For example, If WinZip is installed in your c:\winzip directory,
' specify
' compress=c:\winzip\winzip.exe -a %1 @%2
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
x140 Messages postés 10 Date d'inscription jeudi 6 février 2003 Statut Membre Dernière intervention 19 décembre 2007
22 nov. 2005 à 09:43
salut
désolé, mais..clairement, vous avez une solution pour décompresser un fichier et le renommer ? (sans se servir de la souris, car le tout est dans un autoexec!!!)
merci !
0
Rejoignez-nous