Search code examples
batch-fileshortcuttaskmanagertaskkill

How to create a shortcut or batch file to kill a process


I would like to create a shortcut or batch file to kill a process NorisWin32.exe in two clicks instead of repeatedly killing it in Task Manager.


Solution

  • At the location you want the shortcut:

    • Right-Click , and choose New → Shortcut.

    • In the input box choose and paste any 1 of the following command strings:

      Powershell (GPs NorisWin32).Kill()
      

       

      WMIC Process Where "Name='NorisWin32.exe'" Call Terminate
      

       

      TaskKill /IM NorisWin32.exe
      
    • Click Next.

    • Enter a name in the input box, e.g. Kill Noris.
    • Select Finish.
    • Double-Click the new shortcut as necessary.