Link to home
Start Free TrialLog in
Avatar of vbeginner
vbeginner

asked on

Shellexcute with pkzip.exe

Hi, i am making  a program which will zip a directory.. now i am using the third party softare name pkzip.exe.. i am using the shellexcute api to do this..
but, i have a problem..  when zipping is done.. pressing ctrl+alt+delete will
display the winoldap. trying to shutdown will display that pkzip is not closed..
is there a way that when shellexecute is done it will just close the pkzip program by it shelf?
Avatar of jclobocar
jclobocar

Hi vbeginner,

I have tried the following and no trouble (under Windows XP):

  ShellExecute(Application.Handle, 'open', 'c:\pkzip\path\pkzip.exe ',
    'c:\zipfile c:\myfolder\*.*', 'c:\', SW_HIDE);

Have a nice coding day!
ASKER CERTIFIED SOLUTION
Avatar of esoftbg
esoftbg
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would also recommend TPAbbrevia http://sourceforge.net/projects/tpabbrevia/

Commercial quality component, and yet open-source now.
Avatar of vbeginner

ASKER

jclobocar, i have tried that...  but if you press ctrl+alt+del it will display the winoldap and if you select shutdown it will display shutdown.. is there another way?..
vbeginner:

Is it from the your program?

1) Start operating system, and before you call your program, make a ctrl+alt+del and check the result.
2) Remove the ShellExecute, call your program, make a ctrl+alt+del and check the result.

I am waiting for the news,

JC Clobocar

jclobocar,
        i am using windows 98 still there is... winoldap.. jclobocar is it possible to use the winexec('command.com /c pkzip....',sh_hide) ?
Why don't you make a .PIF file which Run Minimized and Close window at end?
esoftbg, does this component handles subfolder?
vbeginner,
yes it handles all subfolders. I am using it for a Setup programm. This Setup programm does UnZip of  INTERBASE server which contains atleast 10 subfolders. It works perfect !
emil