Topic
  • 1 reply
  • Latest Post - ‏2014-07-21T13:30:45Z by GKearney
Krishnaprasadhravi
Krishnaprasadhravi
2 Posts

Pinned topic ZIP Adapter for zipping the folders in WTX

‏2014-07-21T12:15:17Z |

Hi,

Could someone please guide me how to ZIP a folder through WTX map? I tried using ZIP adapter but couldn't get it.The code I placed was

=VALID(PUT("ZIP","FILE,C:\WTX\krishna.zip,PACKAGE(C:\TX_Workspace\InputData)" ," "),

FAIL("error" + LASTERRORCODE() + ": " + LASTERRORMSG()))

Updated on 2014-07-30T11:50:03Z at 2014-07-30T11:50:03Z by paul.brett
  • GKearney
    GKearney
    84 Posts
    ACCEPTED ANSWER

    Re: ZIP Adapter for zipping the folders in WTX

    ‏2014-07-21T13:30:45Z  

    Hi, I found the following example of a rule which shows how to zip all files in a current directory to a zip file called Tests.zip.

    =PUT("ZIP","FILE,Tests.zip,.\*.*","dummy")

    I hope that this information is of help to you.

  • GKearney
    GKearney
    84 Posts

    Re: ZIP Adapter for zipping the folders in WTX

    ‏2014-07-21T13:30:45Z  

    Hi, I found the following example of a rule which shows how to zip all files in a current directory to a zip file called Tests.zip.

    =PUT("ZIP","FILE,Tests.zip,.\*.*","dummy")

    I hope that this information is of help to you.