array(2) {
["docs"]=>
array(0) {
}
["count"]=>
int(0)
}
111string(0) ""
int(1)
int(10)
int(70)
int(8640000)
string(13) "likecs_art_db"
array(1) {
["query"]=>
array(1) {
["match_all"]=>
object(stdClass)#28 (0) {
}
}
}
array(1) {
["createtime.keyword"]=>
array(1) {
["order"]=>
string(4) "desc"
}
}
int(10)
int(0)
int(8640000)
array(2) {
["docs"]=>
array(0) {
}
["count"]=>
int(0)
}
Windows中检查某一进程是否存在 - 爱码网
Windows中有时需要进程名检查进程是否存在。
根据检查频率不同,批处理程序可以写成以下两种:
单次检查
@echo off
@for /f %%i in ('tasklist /nh') do if "%%i"=="WinKawaks.exe" echo "exist" & goto end
@echo "not exist"
:end
实时检查
@echo off
:loop
tasklist /nh | find /i "WinKawaks.exe" > null
if ERRORLEVEL 1 (echo "not exist") else (echo "exist")
goto loop
相关文章: