Windows CMD 关闭,启动程序

Windows CMD 关闭,启动程序

1. Windows 通过 CMD 命令行关闭程序

示例:通过 taskkill 命令关闭 QQ 管家,但是这里有个问题,使用命令行关闭 QQ 管家时,会提示"错误: 无法终止 PID 1400 (属于 PID 22116 子进程)的进程"。

查询说是没有使用管理员权限,但是这里修改管理员权限之后还是不行,搞不清楚为什么,测试关闭 "钉钉" 可以。

shell 复制代码
# 测试关闭 QQ 管家
@echo off
taskkill /f /t /im QQPCTray.exe

# 测试关闭"钉钉"
@echo off
taskkill /f /t /im DingtalkLauncher.exe

2. Windows 通过 CMD 命令行启动程序

shell 复制代码
# 命令行格式
@echo off
start /d "D:\Program Files" 文件名称2.exe

# 示例:启动"钉钉"
@echo off
start /d "D:\My APP\钉钉\DingDing\" DingtalkLauncher.exe
相关推荐
caimouse32 分钟前
Reactos 第 9 章 设备驱动 — 9.8 设备驱动模块的装载
windows
caimouse36 分钟前
Reactos 第 9 章 设备驱动 — 9.2 一个“老式“驱动模块的实例
windows
caimouse44 分钟前
Reactos 第 9 章 设备驱动 — 9.4 内核劳务线程
开发语言·windows
星栈独行1 小时前
Rust + Makepad 应用怎么打包发布:Windows、macOS、Linux 全平台交付
windows·程序人生·macos·ui·rust
辣香牛肉面1 小时前
Windows PDF转换工具箱
windows·pdf
daly5201 小时前
PyCharm怎么下载?2026最新版PyCharm安装教程(Windows/macOS/Linux)
windows·macos·pycharm
西凉的悲伤1 小时前
redis-windows 安装 redis 到 windows 电脑
java·windows·redis·redis-windows
caimouse1 小时前
Reactos 第 8 章 结构化异常处理 — 8.4 软异常
服务器·开发语言·windows
chushiyunen2 小时前
codex笔记、thinkai中转站
windows
z落落12 小时前
C#WinForm 窗体切换与窗体传值(登录跳转案例)+WinForm 窗体传值(从上往下传、从下往上传)
开发语言·windows·c#