Syntax
KillProcess( Path:String )
Parameters
Path:String
Full path to executable file, that need to be terminated.
Return value
If application is running and is successfully terminated, the function returns 1, otherwise function returns 0.
Example
Execute('C:\WINDOWS\notepad.exe');
Wait(1000);
KillProcess('C:\WINDOWS\notepad.exe');
This example will run notepad, wait 1 second and close notepad.
Download example KillProcess.
Leave a Reply