I use VB.NET and to force a terminal to shut down I use  the command

        Shell("KILL -F T.exe")       'Assuming your Meditech session is T.exe

This will end all Meditech connections on that P.C.  You do not have to be at a 
menu selection.  It should
only be used as a last resort.   DO NOT run this on a machine that can have 
several Meditech sessions (ie. Citrix).


To determine if Meditech is already running on a P.C.

        Dim strTEST(5) As System.Diagnostics.Process
        Dim intTest As Integer
        strTEST = Process.GetProcessesByName("T")    'Assuming your Meditech 
session is T.exe
        intTest = strTEST.Length

If intTest = 1 (or more),  Medtech is running.  If intTest = 0, Meditech is not 
running.

Hope this helps.

Mark Cassidy
Maine Medical Center
(207) 662-3944
>>> [EMAIL PROTECTED] 02/25/05 12:25 PM >>>
Hello,

 

Is there a way to make a MEDITECH terminal shut down without having to
exit from all of the menus?  Also, is there a way to detect if the
MEDITECH terminal has been shutdown?

 

Thanks,

 

Gabe Smith

Merle West Medical Center

Information Systems

2865 Daggett Street

Klamath Falls, OR  97601

 

[EMAIL PROTECTED] 

Voice: 541-885-4617

Fax: 541-885-4679

 

 


Reply via email to