cancel
Showing results for 
Search instead for 
Did you mean: 

operating system command to zip the file

former_member182412
Active Contributor
0 Kudos

Hi Experts,

I got proxy to file scenario, i can place the text file successfully in reciever side, i want to zip the file in reciever side using operating system command option in reciever Communication Channel.

Can anyone please give me the operating system command to create the zip file in reciever side.

Kind Regards,

Praveen.

Accepted Solutions (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi Praveen,

>>Can anyone please give me the operating system command to create the zip file in reciever side.

Why OS commands and not the PayloadZipModule?

If you need OS commands check this blog of Michal /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions

Update

You can try this command too


cmd /C "jar cMf \\<folderpath>test1.zip \\<folderpath>*.*"

Regards

Suraj

former_member182412
Active Contributor
0 Kudos

Hi There,

In the actual server that means reciever side this command was successful, using this command i can able to create the zip file, in XI in Communication channel how can i write the same command.

C:\Program Files\WinZip>wzzip -a c:\test c:\test.txt

Kind Regards,

Praveen.

former_member187339
Active Contributor
0 Kudos

Hi Praveen,

Try this:


cmd /C "wzzip -a c:\test c:\test.txt" 
or
"cmd /C "wzzip -a c:\test c:\test.txt""

Alternatively you can run the above code using the RUN prompt of your local desktop

Regards

Suraj

Answers (0)