将以下代码保存在.bat文件,然后用管理员权限运行
pushd "%~dp0"
#下面修改时间,根据操作系统的语言不同,会有不同的格式,比如2019-10-26date 10/26/2019 Hearthbuddy.exe
版本二
@echo offset d=%date%date 2020/1/4cd /d %~dp0start Hearthbuddy.exeping -n 5 127.0.0.1>nuldate %d%