>>>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 :)