windows查看程序启动参数,通过bat定时重启程序

354 阅读1分钟

​ 本文已参与「新人创作礼」活动,一起开启掘金创作之路。

windows查看程序的启动详细参数

wmic process get caption,commandline /value | findstr "WXWork.exe"

​编辑

Windows通过bat脚本,即可重启程序

配合计划任务,可以定时重启程序

@echo off
echo "QTranslate Restart"
taskkill /im QTranslate.exe
echo "QTranslate Stop"
start /d "E:\program\QTranslate" QTranslate.exe
echo "QTranslate Start"
exit

相关命令

  • taskkill 杀死应用程序
  • start /d 启动应用程序

期待大家点赞支持