PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > Using Windows Script that Zip Files using Winzip
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Using Windows Script that Zip Files using Winzip

Réponse
 
LinkBack Outils de la discussion
Vieux 05/11/2007, 07h55   #1
M P
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Using Windows Script that Zip Files using Winzip

Is it possible? I need to zip files like in this scenario:

C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc

Zip to

C:\Backup\Folder1\Files.zip

  Réponse avec citation
Vieux 05/11/2007, 11h35   #2
McKirahan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Using Windows Script that Zip Files using Winzip

"M P" <mponteres@gmail.com> wrote in message
news:1194249357.219860.20890@k79g2000hse.googlegro ups.com...
> Is it possible? I need to zip files like in this scenario:
>
> C:\Backup\File1.doc
> C:\Backup\File2.doc
> C:\Backup\File3.doc
>
> Zip to
>
> C:\Backup\Folder1\Files.zip


7-Zip (http://www.7-zip.org/) is a (free) scriptable file compression
utility.

The following could be run from the command line:
7za.exe a -tzip C:\Backup\Folder1\Files.zip C:\Backup\File?.doc

You could also create a text file containing a list of files
to zip and execute it this way:
7za.exe a -tzip C:\Backup\Folder1\Files.zip @C:\Backup\Files.txt
where C:\Backup\Files.txt would contain
C:\Backup\File1.doc
C:\Backup\File2.doc
C:\Backup\File3.doc

The outpit could be logged by appending the following to the command:
>> C:\Backup\Files.log


Alternatively, depending on your needs, you could
create a text file of the commands and run it via script.


  Réponse avec citation
Vieux 05/11/2007, 13h58   #3
M P
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Using Windows Script that Zip Files using Winzip

On Nov 5, 7:35 pm, "McKirahan" <N...@McKirahan.com> wrote:
> "M P" <mponte...@gmail.com> wrote in message
>
> news:1194249357.219860.20890@k79g2000hse.googlegro ups.com...
>
> > Is it possible? I need to zip files like in this scenario:

>
> > C:\Backup\File1.doc
> > C:\Backup\File2.doc
> > C:\Backup\File3.doc

>
> > Zip to

>
> > C:\Backup\Folder1\Files.zip

>
> 7-Zip (http://www.7-zip.org/) is a (free) scriptable file compression
> utility.
>
> The following could be run from the command line:
> 7za.exe a -tzip C:\Backup\Folder1\Files.zip C:\Backup\File?.doc
>
> You could also create a text file containing a list of files
> to zip and execute it this way:
> 7za.exe a -tzip C:\Backup\Folder1\Files.zip @C:\Backup\Files.txt
> where C:\Backup\Files.txt would contain
> C:\Backup\File1.doc
> C:\Backup\File2.doc
> C:\Backup\File3.doc
>
> The outpit could be logged by appending the following to the command:
> >> C:\Backup\Files.log

>
> Alternatively, depending on your needs, you could
> create a text file of the commands and run it via script.


Does 7zip kave advantage with winzip interms of file size to be
compressed?

  Réponse avec citation
Vieux 05/11/2007, 14h38   #4
McKirahan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Using Windows Script that Zip Files using Winzip

"M P" <mponteres@gmail.com> wrote in message
news:1194271129.159805.208820@y27g2000pre.googlegr oups.com...
> On Nov 5, 7:35 pm, "McKirahan" <N...@McKirahan.com> wrote:
> > "M P" <mponte...@gmail.com> wrote in message
> >
> > news:1194249357.219860.20890@k79g2000hse.googlegro ups.com...
> >
> > > Is it possible? I need to zip files like in this scenario:

> >
> > > C:\Backup\File1.doc
> > > C:\Backup\File2.doc
> > > C:\Backup\File3.doc

> >
> > > Zip to

> >
> > > C:\Backup\Folder1\Files.zip

> >
> > 7-Zip (http://www.7-zip.org/) is a (free) scriptable file compression
> > utility.


[snip]

> Does 7zip kave advantage with winzip interms of file size to be
> compressed?


I have no idea.


  Réponse avec citation
Vieux 05/11/2007, 17h27   #5
Tom Lavedas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Using Windows Script that Zip Files using Winzip

On Nov 5, 9:38 am, "McKirahan" <N...@McKirahan.com> wrote:
> "M P" <mponte...@gmail.com> wrote in message
>
> news:1194271129.159805.208820@y27g2000pre.googlegr oups.com...
>
>
>
> > On Nov 5, 7:35 pm, "McKirahan" <N...@McKirahan.com> wrote:
> > > "M P" <mponte...@gmail.com> wrote in message

>
> > >news:1194249357.219860.20890@k79g2000hse.googlegr oups.com...

>
> > > > Is it possible? I need to zip files like in this scenario:

>
> > > > C:\Backup\File1.doc
> > > > C:\Backup\File2.doc
> > > > C:\Backup\File3.doc

>
> > > > Zip to

>
> > > > C:\Backup\Folder1\Files.zip

>
> > > 7-Zip (http://www.7-zip.org/) is a (free) scriptable file compression
> > > utility.

>
> [snip]
>
> > Does 7zip kave advantage with winzip interms of file size to be
> > compressed?

>
> I have no idea.


If you have a registered copy of winzip, you can download a command
line driven add-on free and us it via the WScript.Shell's Run method.
See:

http://www.winzip.com/prodpagecl.htm

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/

  Réponse avec citation
Vieux 12/11/2007, 10h55   #6
Chris M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Using Windows Script that Zip Files using Winzip

M P wrote:
> Is it possible? I need to zip files like in this scenario:
>
> C:\Backup\File1.doc
> C:\Backup\File2.doc
> C:\Backup\File3.doc
>
> Zip to
>
> C:\Backup\Folder1\Files.zip


X-Zip is free - it's a COM object that can be used from VBScript or
anything else that can talk to COM.

http://xstandard.com/en/documentation/xzip/

--
Chris.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h38.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,22030 seconds with 14 queries