cancel
Showing results for 
Search instead for 
Did you mean: 

extracting a zip file in CPI-DS

0 Kudos

we need to pick a zip file from a input folder and then extract it and place it in output folder.
is there any way?

i have tried it on command prompt using below command line, but it gives error that it is unable to find the file.

for /R "<input folder>" %I in ("zip file name") do ("%ProgramFiles(x86)%\WinZip\winzip32.exe" x -y -o"%%~dpnI" "%%~fI")

Accepted Solutions (0)

Answers (1)

Answers (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Hi ,

There is no standard way to unzip the file in CPI DS.

Write a script according to the OS,place that script in some folder where your actual files are being picked up, then you may use exec() function to execute that script.

I would suggest you to check with Basis/Unix team for the script.

Thanks,

Manoj