简体   繁体   English

Tibco压缩文件

[英]Tibco Zipping file

I have got a scenario in which I have got two files in a folder.One is .jpg format and other is .xmp format.I have to zip this folder.That means the final zip folder will contain both of these files.Is there is any way to zip them together in bw,without using java function. 我有一个场景,其中一个文件夹中有两个文件,一个是.jpg格式,另一个是.xmp格式。我必须压缩该文件夹,这意味着最终的zip文件夹将包含这两个文件。无需使用java函数,就可以用bw将它们压缩在一起。

Thanks in Advance. 提前致谢。

You can use a Java code activity you won't have to add any libraries as the java natively can manipulate the Zip archives .. check this Appending files to a zip file with Java 您可以使用Java代码活动,而无需添加任何库,因为Java本机可以操纵Zip存档。.选中此附加文件,使用Java

You can invoke it as a system command like gzip mm/* in the External command activity 您可以在外部命令活动中将其作为系统命令(例如gzip mm/*调用

specify the script as the command to run in the External Command activity. 将脚本指定为要在“外部命令”活动中运行的命令。 The script runs the desired command and returns the process ID of the process it started. 该脚本运行所需的命令,并返回其启动的进程的进程ID。 The return code of the script is stored in the return Code item of the External Command activity's output. 脚本的返回码存储在“外部命令”活动输出的返回码项中。

I hope this could help! 希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM