Hi,
I'm trying to write a program that checks if a specific EXE file is running. If
it is, then I need to close it, copy over the latest version, and then run it
again,
Can anyone give me some help with whatever windows API calls I need to use (or
if there any existing Delphi functions/procedures I can use)
My code would ideally look like the following, so would need the code for the
functions I'm calling...
if ExeIsRunning('SPECIFIC.EXE') then
begin
CloseRunningExe('SPECIFIC.EXE');
// do my stuff here - already know what I am doing here!
OpenExeAgain('SPECIFIC.EXE'); // Can prob guess that I use ShellExecute here?
end
else
// do my stuff here - already know what I am doing here!
PS - I am using Delphi 5 in a Win32 environment
Thank in advance for any help
Regards,
Steve B.
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi