-1

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.

Karel
  • 75
  • 1
  • 2
  • 9

1 Answers1

2

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.
Compo
  • 36,585
  • 5
  • 27
  • 39
  • Hey Compo, can I create this shortcut with two commands? Kill process then restart? I have an app that links my label printer to a courier label purchasing website and by their own confession the app is designed poorly where the connection is lost if windows goes to sleep. I am needing to kill the process and relaunch the app daily. Painful. – Beno Feb 24 '23 at 00:49
  • You could @Beno, however for the first you'd need to run multiple powershell commands, in the format ```powershell -nop -c "your commands here with semicolon seperators and nested doublequotes escaped"```; for the latter two, you'd need to use ```cmd /d /c "your commands here with ampersand seperators"```. I'm not however going to offer full code, as this is technically a new question. – Compo Feb 24 '23 at 01:29