本帖最后由 Nsqs 于 2017-2-27 15:01 编辑
回复 10# ebase9 - @echo off
- for /f "tokens=2 delims= " %%1 in ('tasklist /v^|findstr /i "download"')do set pid=%%1
-
- :a
- for /f "tokens=10* delims= " %%1 in ('tasklist /v^|findstr /i "%pid%"')do echo %%1 %%2
- goto a
复制代码 标题为download的bat加一个延迟否则捕获不到download- title download
- ping /n 5 127.0.0.1>nul
复制代码
|