2 Replies Latest reply on Oct 15, 2007 7:25 AM by alpenman4000

    CFX_Zip rename files

    alpenman4000
      hello all,

      I would like to change names of particular files within zip-files, using the CFX_ZIP tag. The possible actions are "read, remove, test, unzip, view, zip"... I can't find a way to do the action that I want.

      any help will be appreciated.

      greetings rudy
        • 1. Re: CFX_Zip rename files
          Level 7
          alpenman4000 wrote:
          > hello all,
          >
          > I would like to change names of particular files within zip-files, using the
          > CFX_ZIP tag. The possible actions are "read, remove, test, unzip, view, zip"...
          > I can't find a way to do the action that I want.
          >
          > any help will be appreciated.
          >
          > greetings rudy
          >

          there is no way to do what you want with that custom tag, i am afraid...

          --

          Azadi Saryev
          Sabai-dee.com
          http://www.sabai-dee.com
          • 2. Re: CFX_Zip rename files
            alpenman4000 Level 1
            hello azadi,

            I have made a 'work around' for the required action. little bit complicated to handle that (in my opinion) simple action:
            1. count the number of files in the ZIP-file
            2. looping: unzip each file to temp. server location, rename each file on temp. server location, delete each file in ZIP-file, upload each new file in ZIP-file, delete each file on temp. server location

            The new name of each file is coming from a form value.

            greetings rudy