windows下BAT实现守护进程

通过bat守护特定exe

@echo off

:start
choice /t 5 /d y /n >nul

tasklist|find /i "程序名称.exe"

if ERRORLEVEL 1 (
	echo 无exe程序
	start D:\程序名称.exe
) else (echo 有exe程序 )

goto start

posted on 2023-01-15 16:54  anjun_xf  阅读(237)  评论(0编辑  收藏  举报

导航

TOP