dos 命令查找进程pid pid_find.bat
//zz//############################################pid-find.batzz@2014-12-22 00:23:30没什么特别的,linux下玩了下脚本想起到dos上来玩玩bat脚本, for /f 和 |find /i 的使用@title dos_find_pid@color 0a@echo just an
·
//zz//############################################
pid-find.bat
zz@2014-12-22 00:23:30
没什么特别的,linux下玩了下脚本
想起到dos上来玩玩bat脚本, for /f 和 |find /i 的使用
@title dos_find_pid
@color 0a@echo just an sample
@echo off
for /f "tokens=2" %%a in ('tasklist ^|find /i "computerz_cn.exe"') do set qqpid=%%a
echo PID=%qqpid%
pause&exit/b
更多推荐
已为社区贡献2条内容
所有评论(0)