Re: HOW CAN I KILL A TASK WHITHIN V.B. CODE
- From: "Richard T. Edwards" <r.t.edwards@xxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 21:28:23 -0400
WMI
This will terminate all Word processes:
Set objs = GetObject("winmgmts:").ExecQuery("Select * From Win32_Process
where Name = 'WINWORD.EXE'")
For each obj in objs
obj.Terminate()
Next
hth
"PERRO" <PERRO@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D9EFB475-C96B-4481-A1E0-B6A3350D4700@xxxxxxxxxxxxxxxx
> I'M DEVELOPING AN APLICATION THAT WORKS WITH WINWORD.EXE BUT IN CERTAIN
> CASES
> I NEED TO KILL IT MANUALLY AND I WANT TO AUTOMATIZE THE ACCTION IN THE
> CODE
> DOES ANYONE KNOWS WHO CAN I PERFORM THIS IN V.B. 6.0 CODE.
> THANKS.
> --
> PERRO
.
- Follow-Ups:
- Re: HOW CAN I KILL A TASK WHITHIN V.B. CODE
- From: Andrew D. Newbould
- Re: HOW CAN I KILL A TASK WHITHIN V.B. CODE
- Prev by Date: Re: VB6 Recent Tab not showing last opened projects ?
- Next by Date: Re: XML Programming
- Previous by thread: Re: VB6 Recent Tab not showing last opened projects ?
- Next by thread: Re: HOW CAN I KILL A TASK WHITHIN V.B. CODE
- Index(es):
Relevant Pages
|