Windows CMD closes and starts the program

Windows CMD closes and starts the program

1. Windows closes the program through the CMD command line

Example: Use the taskkill command to shut down QQ Butler, but there is a problem. When you use the command line to shut down QQ Butler, you will be prompted with "Error: Unable to terminate the process of PID 1400 (belonging to the child process of PID 22116)". Because QQ Butler and 360 Security have a "self-protection", you can use the taskkill command to close it after manual shutdown

# 测试关闭 QQ 管家
@echo off
taskkill /f /t /im QQPCTray.exe

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

Insert image description here

2. Windows starts the program through CMD command line

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

# 示例:启动“钉钉”
@echo off
start /d "D:\My APP\钉钉\DingDing\" DingtalkLauncher.exe

 
 
 
 
 

Guess you like

Origin blog.csdn.net/D1179869625/article/details/132271387