comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Spawning EML Scripts in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Spawning EML Scripts in IDL [message #51889 is a reply to message #51876] Wed, 13 December 2006 16:13 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
On windows you can use the WMI (Windows Management Interface). You
could probably do this via IDLcomIDispatch, but spawning vb script is
easier. Something like this should suffice:

Dim objWMIService, objProcess, colProcess
Dim strComputer, strProcessKill
strComputer = "."
strProcessKill = "'eml.exe'"

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")

Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = " & strProcessKill )
For Each objProcess in colProcess
objProcess.Terminate()
Next

WScript.Quit

-Rick

Robbie wrote:
> File locking is generally operating system dependent. Although, the
> file lock should be released if you terminate the EML process. You can
> find the process id by using the PID keyword in spawn. You can then
> terminate it using kill (UNIX) or a call to a MFC function (Windows)
>
> Robbie
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to get a very large 2D projected surface image
Next Topic: Re: Licensing problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 03:42:37 PDT 2025

Total time taken to generate the page: 0.40227 seconds