cancel
Showing results for 
Search instead for 
Did you mean: 

How to Zip txt files in BODS

ramyas1324
Member
0 Kudos

Can someone please help me to understand how to Zip txt files in BODS?

Accepted Solutions (0)

Answers (1)

Answers (1)

Julian_Riegel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear ramyas1324,

you need to write a batch script or similar and trigger the script with EXEC() function from within Data Services.

Something similar to:

http://stackoverflow.com/questions/20485419/batch-file-script-to-zip-files

Also, if you have 7zip or winzip installed on your machine, you could trigger their executables with respective CLI commands. You can follow the respective CLI documentation for 7zip:

https://sevenzip.osdn.jp/chm/cmdline/syntax.htm

for example:

exec('7z.exe', 'a -tzip <Path and Filename for Zipfile> <path and Filename to be Zipped>', 8);

Regards,

Julian