you never doubt youself,I belive!

dos命令tasklist 内存监控

上一篇 / 下一篇  2011-12-01 10:19:21 / 个人分类:批处理

@echo off
 
SET INFO_PATH=E:\info
 
mkdir %INFO_PATH%
 
@echo 监控analyst/dispatch/sqlserver进程的内存,执行10000次,结果输出至E:\info,请等待...
for /L %%i in (1,1,10000) do (
 
tasklist /nh /fi "imagename eq KJTX.Analyst.Start.exe" /fo table >> %INFO_PATH%\Analyst_info.txt
tasklist /nh /fi "imagename eq KJTX.Dispatch.exe" /fo table >> %INFO_PATH%\Dispatch_info.txt
tasklist /nh /fi "imagename eq sqlservr.exe" /fo table >> %INFO_PATH%\sqlserver_info.txt
tasklist /nh /fi "imagename eq IEXPLORE.EXE" /fo table >> %INFO_PATH%\iexplore_info.txt
 
@echo 每隔30秒记录一次数据
ping -n 30 127.0.0.1>null
 
)
 

pause

TAG:

 

评分:0

我来说两句

Open Toolbar