How to stop process from .BAT file?

后端 未结 6 666
野趣味
野趣味 2020-12-14 15:25

So I have process I started from one bat file. How to stop it from another?

6条回答
  •  忘掉有多难
    2020-12-14 16:01

    To terminate a process you know the name of, try:

    taskkill /IM notepad.exe
    

    This will ask it to close, but it may refuse, offer to "save changes", etc. If you want to forcibly kill it, try:

    taskkill /F /IM notepad.exe
    

提交回复
热议问题