Home > Articles > KillProcess function in RoutineBot

KillProcess function in RoutineBot

June 17th, 2009

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.

  • Share/Bookmark

Developer Articles

  1. No comments yet.
  1. No trackbacks yet.