>A little while back I asked:
>============================
>Has *anyone* seen a PS/KILL that will show - and allow to be killed - all
>those background tasks that PVIEWER shows?
>I have several PS/KILL programs but NONE OF THEM WILL DO THIS
> *** I need to kill a task or two started with SRVANY.
> *** Stopping the service is not enough
>This is what I found out:
>=========================
>Laurence Kahn's KILLPROC program will do this.
>Unfortunately it cannot (AFAIK) distinguish between several background
>"ntvdm" tasks. Naming them ZZZ by START "ZZZ" MYTASK.BAT has no effect, nor
>does using START MYPIF.PIF where the .PIF has a WindowTitle of ZZZ.
>If anyone out there knows a way around this I'd *very* much appreciate
>hearing about it!!
If you start them with START /Separate Mytask.bat a new independent
ntvdm will be started in its own memory space. If you execute a tlist
(found in the resource kit) you will get a list that gives you the
process ID (PID) then execute a kill PID (also found in the resource
kit) and 'poof' the process is gone.
The key is to start them in SEPARATE memory spaces so they are
independent (detached} processes. This is only necessary for 16 bit
processes that use ntvdm. Unless specified they start as child
processes to the default ntvdm. When you kill the default you kill
ALL of it's childern.