展开全部
@echo off
set #=有问题联系&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$% %z%
set "batfile=D:\test\xx.bat"
set "t=60"
:loop
set "sleep=%windir%\System32\timeout.exe"
echo;%#% +%$%%$% %z%
wmic Process where "Name='cmd.exe' and CommandLine like '%%%batfile:\=\\%%%'" get ProcessId|findstr "[0-9][0-9]*">"%tmp%\t.t"
for /f %%a in ('type "%tmp%\t.t"') do (echo;"%%a"&taskkill /f /pid %%a /t)
if exist "%sleep%" (timeout /t %t% /nobreak) else (>nul ping /n %t% 0)
start "" "%batfile%"
if exist "%sleep%" (timeout /t %t% /nobreak) else (>nul ping /n %t% 0)
goto loop
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询