jyotikunder
Technical User
Hi,
I am running winzip32.exe from my appl.n for extracting db.zip. I want to use OpenChannel() for knowing if winzip has completed it's processing before my PB appl.n performs any other processing. But i am failing to do so.
Can anyone be kind enough to guide me relating to this? Do i have to specify the path of db.zip or where am i going wrong?
Thanx a ton in advance.
***my code****
time starttime
str = "c:\inv\"
long hndl
OpenChannel("Winzip","db.zip"
IF hndl < 1 then
run("C:\Program Files\WinZip\Winzip32.exe -min -e -o " + str + "db.zip " + str)
starttime = Now()
DO
setpointer(hourglass!)
Yield()
hndl = OpenChannel("winzip","db.zip"
IF hndl > 0 THEN EXIT
LOOP Until SecondsAfter(StartTime,Now()) > 60
setpointer(uparrow!)
IF hndl < 1 THEN
MessageBox("Error", &
"Can't start winzip.", StopSign!)
SetPointer(Arrow!)
RETURN
END IF
END IF
I am running winzip32.exe from my appl.n for extracting db.zip. I want to use OpenChannel() for knowing if winzip has completed it's processing before my PB appl.n performs any other processing. But i am failing to do so.
Can anyone be kind enough to guide me relating to this? Do i have to specify the path of db.zip or where am i going wrong?
Thanx a ton in advance.
***my code****
time starttime
str = "c:\inv\"
long hndl
OpenChannel("Winzip","db.zip"
IF hndl < 1 then
run("C:\Program Files\WinZip\Winzip32.exe -min -e -o " + str + "db.zip " + str)
starttime = Now()
DO
setpointer(hourglass!)
Yield()
hndl = OpenChannel("winzip","db.zip"
IF hndl > 0 THEN EXIT
LOOP Until SecondsAfter(StartTime,Now()) > 60
setpointer(uparrow!)
IF hndl < 1 THEN
MessageBox("Error", &
"Can't start winzip.", StopSign!)
SetPointer(Arrow!)
RETURN
END IF
END IF