Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenChannel problem with winzip

Status
Not open for further replies.

jyotikunder

Technical User
Jan 18, 2003
3
IN
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(&quot;C:\Program Files\WinZip\Winzip32.exe -min -e -o &quot; + str + &quot;db.zip &quot; + str)
starttime = Now()

DO
setpointer(hourglass!)
Yield()
hndl = OpenChannel(&quot;winzip&quot;,&quot;db.zip&quot;)
IF hndl > 0 THEN EXIT
LOOP Until SecondsAfter(StartTime,Now()) > 60
setpointer(uparrow!)

IF hndl < 1 THEN
MessageBox(&quot;Error&quot;, &
&quot;Can't start winzip.&quot;, StopSign!)
SetPointer(Arrow!)
RETURN
END IF
END IF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top