Windows编写bat批处理脚本定时检查进程是否存在,不存在则启动
脚本
@echo off
:loop
tasklist | find "gbcollection.exe"
if errorlevel == 1 call "gbcollection.exe"
timeout /T 3
goto loop
后台运行
将以下代码放置在 @echo off下面
if "%1"=="hide" goto CmdBegin
start mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(
原创
2021-08-03 15:55:06 ·
3371 阅读 ·
0 评论