![]() ![]() |
Compress and Descompress, How to do it? |
Oct 6 2009, 04:01 PM
Post
#1
|
|
|
Contributor ![]() ![]() Group: Members Posts: 21 Joined: 24-April 09 Member No.: 480 |
Hi:
I'm trying to receive a file in Gateway, what I want is to compress that file at the time that I receive it. I'am able to send a message/file from XFB Interpel to Gateway but I haven't been able to compress a file in case that comes uncompressed and decompress the file that the gateway receive. I hope you can help me. Best Regards |
|
|
|
Nov 18 2009, 10:09 AM
Post
#2
|
|
|
Visitor ![]() Group: Members Posts: 1 Joined: 9-October 09 Member No.: 785 |
Hi: I'm trying to receive a file in Gateway, what I want is to compress that file at the time that I receive it. I'am able to send a message/file from XFB Interpel to Gateway but I haven't been able to compress a file in case that comes uncompressed and decompress the file that the gateway receive. I hope you can help me. Best Regards Hello, You have to use some Decision rules. When you get a ‘*.zip’ (for example) you can activate a Decision rule which will be able to automatically unzip the files. - Create a ‘unziped’ folder in the mailbox where you will put unziped files (directory Gateway/run_time/temp) - In Gateway, Add New rules, for example ‘check_zip’ with following arguments: Direction = I, State = E, File name = *.zip and Processing as the following batch (I am on windows): "C:\Program Files\7-Zip\7z.exe" e %x_dir_path%\%x_file_component% -o%x_dir_path%\unziped\ For compressing, you can create New rules, for example ‘check_unzip’ with following arguments: Direction = I, State = E, File name # *.zip and Processing and a batch able to compress files. Hope it can help. |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
Lo-Fi Version | Time is now: 30th July 2010 - 01:09 PM |
Skin designed by IPB Forum Skins
Expand / Collapse Navigation



Oct 6 2009, 04:01 PM



