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
相关推荐
百事牛科技18 小时前
Excel的三种密码:防看、防存、防乱改,各管各的
windows·excel
the3clipse2 天前
MPC-HC 下载安装与最佳配置教程:免费开源、轻量无广告、支持 4K 硬解的 Windows 播放器
windows·播放器·安装教程·硬件加速·mpc-hc·字幕设置·lav filters
独隅2 天前
WebStorm Windows 版 React / Next.js 实战替换指南
javascript·windows·webstorm
陈工大模型2 天前
2026年11月最新免费解压软件横评:7-Zip 、 Win解压缩名列前茅
windows·软件工程·7-zip·压缩软件
中二骚年3 天前
Windows 安全中心 / 防火墙故障,calc和Microsoft Store,终端(管理员)无法正常打开。 原因 + 修复方案
windows·安全·microsoft
万联WANFLOW3 天前
CVE-2026-98432 等漏洞自查:AI 查出的 Linux、Windows 漏洞,运维怎么确认受不受影响
linux·运维·windows·网络安全
AlanAshley3 天前
Windows 中导致延迟的软硬件及协议比重
windows
yuezhilangniao3 天前
win10中文 以及 PowerShell 开发日常
windows·powershell
共享家95274 天前
408 操作系统第一章
服务器·数据库·windows
Sakura_j_h_4 天前
GitHub Actions 打包 Windows exe:中文编码与产物上传
windows·ci/cd·打包发布·github·pyinstaller·github actions