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
相关推荐
weixin199701080164 小时前
《1688物流API接口边界:logistics.trace.get 与 freight.template.list 的隐藏约束》(附Python源码)
windows·python·list
爱编程的Zion11 小时前
【踩坑记录】同一个 WiFi 下,A 电脑能访问 192.168.0.115,B 电脑死活不行 ——Windows 路由表缺失引发的故障排查
windows·电脑
Qwier13 小时前
Win Srv 2019 安装补丁后重启
运维·服务器·windows
lusklusklusk14 小时前
Python 四大数据结构详解:元组、列表、集合、字典的特点与增删改查
数据结构·windows·python
今年下半年15 小时前
【运维】windows虚拟机安装arm(aarch64)服务器
运维·windows·arm·虚拟机·aarch64
浪潮IT馆15 小时前
Windows 10 安装 PostgreSQL 9.6.24 完整教程
数据库·windows·postgresql
sukalot16 小时前
Windows 驱动实例分析系列:libwdi 驱动分析 - libwdi 篇(一)
windows
奇树谦17 小时前
Windows 下使用 PowerShell 和 CMD 排查端口占用
windows
万年咸鱼1 天前
Qt Windows 使用管理员权限运行 Cmd
windows
2601_962364971 天前
从录入到解锁,完整梳理 Windows Hello 识别链路
windows·安全·电脑