Operating Systems
--
Questions
--
Followers
Top Experts
The obvious answer is to use kill.exe but the problem is that this requires the processes PID. The PID can change when the process is created.
Therefore does anyone know how to kill a process by specifying the executable name or process name ?
Thanks.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
To be specific here is output of kill.exe /?
Microsoft (R) Windows NT (TM) Version 3.5 KILL
Copyright (C) 1994 Microsoft Corp. All rights reserved
usage: KILL [options] <<pid> | <pattern>>
      [options]:
        -f   Force process kill
      <pid>
       This is the process id for the task
        to be killed.  Use TLIST to get a
        valid pid
      <pattern>
       The pattern can be a complete task
       name or a regular expression pattern
       to use as a match.  Kill matches the
       supplied pattern against the task names
       and the window titles.
As you can see pattern can be a task name or window title.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
P.S I tested mine and it does 'kill' processes by name.
Do you know how well nt4's kill does on nt5? (Win2K)

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
SimonT - Â have downloaded the killp you suggested and can confirm that it is exactly what I wanted.
The version of kill.exe that I had was NOT from the resource kit and could not kill processes by name.
Again, thanks again.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Operating Systems
--
Questions
--
Followers
Top Experts
Operating systems perform basic tasks, such as recognizing input from the keyboard, sending output to the display screen, keeping track of files and directories on the disk, and controlling peripheral devices such as disk drives and printers. For large systems, the operating system makes sure that different programs and users running at the same time do not interfere with each other. The operating system is also responsible for security, ensuring that unauthorized users do not access the system. Operating systems provide a software platform on top of which other programs, called application programs, can run.