Batch kill all processes with the same name


  1. Posts : 78
    Windows 10 Pro Version 2004 Build 19041.572
       #1

    Batch kill all processes with the same name


    I tried the apps on this site but it doesn't work as it says.

    For instance, I have 50 Chrome.exe processes. I don't want to tick them 1 by 1 to kill it. As long as it's named Chrome.exe, I want to kill them all.

    How can I do it in 1 swop?

    6 Ways to Kill Multiple Windows Processes at Once • Raymond.CC
      My Computer


  2. Posts : 3,276
    Win10
       #2

    Doesn't option 6 from that site work? For eg. if you enter this at the command prompt or enter it in a batch file ?

    TaskKill /IM Chrome.exe /T /F

    (Just in case you haven't tried it; at a command prompt enter TaskKill /? to see what the parameters do).
      My Computers


  3. Posts : 78
    Windows 10 Pro Version 2004 Build 19041.572
    Thread Starter
       #3

    I forgot to mention that I use this when there's an error in an app that will cause it to launch hundreds of times and tries to hang the system too. I wonder is there a way to activate the cmd while the system keeps launching the app?
      My Computer


  4. Posts : 3,276
    Win10
       #4

    You could set up a simple batch file which loops the Taskkill command as in the following example, which loops it every second (you can change the interval by changing the value after the timeout /T command).

    Code:
    :DoAgain
    TaskKill /IM Chrome.exe /T /F
    timeout /t 1
    GOTO :DoAgain
    Although this or other methods of killing multiple instances of a non-behaving program can work, it would be more appropriate to try and track down the root cause of the problem. Perhaps, if you posted with more 'details' in the "Browsers and Email" sub-forum, you may be able to get the appropriate help.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:04.
Find Us




Windows 10 Forums