Hi All,
I want to zip/compress a file using SAP BODS 4.2.5
Is it possible to zip any file(for example .TXT) using the SAP BODS.Any help is appreciated.
Thanks,
Indira
indirank1 (BOB member since 2007-12-11)
Hi All,
I want to zip/compress a file using SAP BODS 4.2.5
Is it possible to zip any file(for example .TXT) using the SAP BODS.Any help is appreciated.
Thanks,
Indira
indirank1 (BOB member since 2007-12-11)
We zip files by using 7-zip and calling from the exec() function in DS.
JonnySpec (BOB member since 2008-08-01)
Can we please give me the exact code in BODS to zip a file using 7-zip.
Thanks for your reply.
indirank1 (BOB member since 2007-12-11)
Hi,
you can try the following Code:
exec(’<path of 7za.exe>’,‘a -t7z’ , 8 );
Path of 7za.exe can be generally - C:\Program Files\7-Zip\7za.exe - Please check your installation folder
Command ‘a’ is used to specify Archive in 7zip command line
Command -t7z will create Zip the file with 7z extension, alternatively you can use -tzip
Jay_mKumar (BOB member since 2016-03-24)
This code works to password protect(hello) and zip it.
– Password protect
Exec (‘c:\Program Files\7-zip\7z’, ‘a -t7z -phello \<PAth>*.txt’);
thanks
indirank1 (BOB member since 2007-12-11)