How to unpack rar archive


How I can unpack rar archive with 7z program in COS?

  • 0
  • 0
  • 133
  • 3
  • 1


Use either $ZF(-1,...) or $ZF(-100, ... )or CPIPE to talk to your OS on command level.

detals here:

Execute Server Commands from Caché / Ensemble / IRIS


Trying to unrar archive in terminal , but the process is blocked.   

Cache run in Windows server 2012

Code bellow

        Set cmdLine="""C:\Program Files (x86)\WinRAR\Rar.exe"" x "_path_" *.dbf "_pathToExt
        Set errCode=$ZF(-100,cmdLine)

Why the command is not executed?

$zf(-100) has different signature:

set cmd = """C:\Program Files (x86)\WinRAR\Rar.exe"""
set args(1) = "x"
set args(2) = path _ "*.dbf"
set args(3) = pathToExt
set sc = $ZF(-100,"/SHELL", cmd,.args)

 Hello, Eduard! Thanks for the answer!

I change to $ZF(-1) and it works

Set cmdLine="""C:\Program Files (x86)\WinRAR\Rar.exe"" x "_"C:\billing\gor.rar "_"*.dbf"_" C:\billing\"
 Set errCode=$ZF(-1,cmdLine)