如何从 .BAT 文件停止进程? [英] How to stop process from .BAT file?

查看:27
本文介绍了如何从 .BAT 文件停止进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个从一个 bat 文件开始的过程.如何阻止它?

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

推荐答案

要终止您知道名称的进程,请尝试:

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

这篇关于如何从 .BAT 文件停止进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆