Urgent!! Include winzip in delphi


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by Cyt on December 13, 2001:

Is it possible to include winzip ability into a delphi application program? If yes, how should it be coded?
Would appreciate if an example is included.
Thanks


Related Articles and Replies

Posted by WAllison on December 13, 2001:

Can't help u with an example coz the source is quite long - best option is to get a hold of a Zip Component - I've got quite a few - or u could use the Zip/Unzip.dll. Alternatively (least favourable) u could use the inbuilt shell functions in Winzip using The ShellInvokeCommand function i think.


Posted by Cyt on December 18, 2001:

I tried using the ShellExecute
ShellExecute(Handle, 'Open', 'WinZip32.exe', '-a c:\hihi.zip', nil, SW_NORMAL);

but can't seem to set the path to the files that is to be extracted. Any comments!


Posted by WAllison on December 18, 2001:

i found that:

obviously

-a add/replace files
-e extract files
-f freshen files
-t test archive

the destination directory is the current directory - so create it first(if needed) - change to it - then do the zip operation.


Posted by Cyt on December 27, 2001:

1. how do i change directory?

2. how to use the zip/unzip.dll??


[ Related Articles and Replies ] [ DelphiLand Discussion Forum ]