logik51
-
4 mai 2001 à 11:03
cs_romain35000
Messages postés2Date d'inscriptionjeudi 3 décembre 2009StatutMembreDernière intervention21 juin 2010
-
21 juin 2010 à 19:32
Salut,
Je souhaiterai zipper un fichier Via VB...
Quelqu'un peut m'aider ?
cs_Zoltan67
Messages postés91Date d'inscriptionmercredi 18 décembre 2002StatutMembreDernière intervention25 juin 20031 6 juin 2003 à 16:48
et voici les différentes option à utiliser avec Winzip, en paramètres pour ceux qui, comme moi, ont cherché comment faire (bon, en anglais, mais faut pas trop en demander ;o)
'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
Vous n’avez pas trouvé la réponse que vous recherchez ?
Gunshin82
Messages postés37Date d'inscriptionjeudi 22 mars 2007StatutMembreDernière intervention10 décembre 2009 27 mars 2007 à 14:23
Bonjour,
Tout d'abords, merci beaucoup à lianys et à Zoltan67, vous avez répondu à presque toute les questions que j'étais pour demandé mais il m'en reste une, voici la situation :
J'ai un fichier zip contenant plus de 100 fichiers, je voudrais extraire que ceux contenant disons le code 500 à l'intérieur de sont nom. Comment pourrais-je faire pour que mon code VBA puisse filtrer les fichiers et extraire que ceux qui s'applique à ce filtre ?