Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinZip from VFP
Message
De
10/03/1998 16:00:32
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/03/1998 09:22:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00083168
Message ID:
00083733
Vues:
31
>>>How can I run Winzip from VFP 5.0 and control it from VFP ?
>>>I want to select files to be zipped from within VFP.
>>
>>Winzip only allow a command prompt syntax. You may want to use Dynazip instead.
>
>I got WinZip to run within a Foxpro 2.6 program but should work in VFP. Below is the rough code. I have only an Alpha printout of the code.
>
>***
>SET LIBRARY TO foxtools Addi
>
><>

Well, there's a simpler way, though it starts a new thread process, so you never really know when it finishes... or it does finish, but does it very quick, since it doesn't really shell out, create a window etc etc:

Lpara cmdl
* UINT WinExec(
* LPCSTR lpszCmdLine, // address of command line
* UINT fuCmdShow // window style for new application
* )

Declare long WinExec in kernel32.dll string lpszCmdLine, integer fuCmdShow

if type("cmdl")#"C"
cmdl="Pkzip all"
endif

ret=WinExec(@cmdl, 0)
?ret

If it returns some 4-digit number, it ended OK, else it will be a number below 32.

Hmmm. When I opened this bit of code, it was all selected. Deja vu - did I post this already or not?

Yes! I did it yesterday! Glad to see my SIMMs still refresh at least within 24h :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform