1.

Solve : Little bit of help required.?

Answer»

Hi,

I have been asked in work to create a autmated process for zipping files on a server.

The server will have a list of zip, bak and exe files on it.  The bak files are splitt into a number of different groups ie a1.bak, a2.bak, b1.bak b2.bak etc.

I have to zip the groups of bak files seperately(group a, group b) and name the zip files according to the name of the group files.

So far I have installed the zip command line tool, and have work out how to zip and MOVE the files.

My question is how do i retrieve the and name the zip files according to their group?  My initial IDEA was to create a list of the bak file s and IDENTIFY the unique groups, using these groups i would name and zip the bak files according to these groups.  Does this sound right???

Have anyone got any advice on how to go about this?

Thanks.
kelvinwhat zip command line tool are you using and what is the syntax to zip multiple files?Thanks for your reply.

The zip command line tool I'm using is the offical one off winzip (wzzip).

The lline of code I us to zip multiple file is:
         wzzip -a -m File_Name Group_a*.BAK

At the moment I'm entering the file manually and the group name manually.  I have to do this for EVERY group.  HOwever this is not going to be practical as this task needs to be automated.

Thanks.

Have you got any ideas?
Thanks again,
KELVIN



Discussion

No Comment Found