Go Back   HomeSeer Message Board > 3rd Party Plug-Ins/Scripts > Plug-ins by Author > Click Here for List of Author Forums > MCS Plug-Ins and Scripts > Miscellaneous

Miscellaneous (Formerly MCS Free Plug-Ins) Discussions relating to the WebAgent and other free plug-ins, provided by Michael McSharry. For MCS "pay" plug-ins, please see the specific plug-in forum.

Thread Tools Display Modes
Old February 14th, 2005, 01:56 PM
Michael McSharry's Avatar
Michael McSharry Michael McSharry is offline
Join Date: Jul 2001
Location: North Bend, WA, USA
Posts: 13,779
Terminate a Process Gracefully

Terminate.exe is an application that will terminate a running program using the windows API calls. It first politely asks the application to shut itself down. If that request is ignored, then it takes a brute force method and shuts down the process in which the application was running.

Input to Terminate is the window title or process ID of the application. Optional status output is available in a homeseer global variable. It can be run from an event, script, asp, or command prompt or any other method normally used to launch an application.

PR 1 1.1 Update contains the process termination if the close message is not successful and improved documentation.

PR 2 1.2 Included hidden/trayed windows as candidates for termination
PR 3 1.2.1 Increased timeout to allow application to shutdown
Attached Files
File Type: zip Terminate121.zip (33.7 KB, 236 views)
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -4. The time now is 10:11 PM.

Copyright HomeSeer Technologies, LLC