批处理之家's Archiver

pusofalse 发表于 2008-9-16 20:41

进程管理:pv.exe

非常强大的进程管理工具,可以实时监控进程,测试实时监控所需CPU不会超过%5(有可能是其他程序所占用的CPU),并带有筛选器,设置优先级,读取模块等功能。[code]Modes:
  -s       --summary   show usage for the specified MODULE
  -h,-?    --help      display this help information
Actions:
  -k       --kill      kill process
  -a       --activate  brings process main window in the foreground
  -c       --close     close (send WM_CLOSE) to the PROCESS
  -p[nihr] --priority  set priority to "Normal", "Idle", "High", "Real Time"
    [ba]               "Below Normal" and "Above Normal" only on W2K or higher
Output Options:
  -e,      --extend    show additional information if available
  -l,      --long      show command line (can also be a filter)
  -q,      --quiet     supress headers and produce a tab-separated list
  -b       --bare      show process ID only ()
Input Options:
  -f,      --force     never prompt
  -i,      --id        use process ID instead of the PROCESS name
Filters:
  -l[mask] --long      include processes with command line matching mask
  -w[mask] --window    show processes with visible windows matching mask,
                       -e includes in search also invisible windows
  -u[mask] --usage     show processes using modules that matches mask
  -t[root] --tree      display process tree starting starting from the root
Extra Information Options:
  -g       --getenv    get startup environment for the  PROCESS
  -m       --module    show modules used by specified PROCESS
Execution Options:
  -d[time] --delay     delay time in milliseconds before executing command
  -r[err]  --repeat    repeat command in a cycle, while (%ERRORLEVEL% > err)
  -n       --number    %ERRORLEVEL% = negated number of matched processes
  -x[a]    --exit      wait for the process completion (exit)
                        'a' flag waits for all processes, -d sets time-out
  -@[file_name]        read arguments from specified file or from
                       standard input after processing the command line
Arguments can contain '*' and '?' wildcards.
Use return code (%ERRORLEVEL%) in batch files:
    0 - process found (negated number of processes if -n is specified)
    1 - empty result set, 2 - programm error
Examples:
  pv myprocess.exe        get process ID for myprocess.exe.
  pv -e                   get extended list of running processes.
  pv -k sleep*            kill all processes starting with "sleep"
  pv -m -e explorer.exe   get extended information about explorer's modules
  pv -u oleaut*.dll       list of all processes that use matching dll
  pv -ph w*.exe           set priority to hight for all matching processes
  pv explorer.exe -l"*/S" looks for explorer process with /S switch
  pv -r0 -d2000 calc.exe "2>nul" checks every 2 seconds if calc.exe is running[/code][url]http://bcn.bathome.net/s/tool/index.html?key=pv[/url]

lixiaodaoaaa 发表于 2008-9-29 15:23

现在发现它确实很管用,感谢pusofalse

很不错,感谢一下先,
[url=http://bbs.bathome.net/thread-1991-1-1.html]http://bbs.bathome.net/thread-1991-1-1.html[/url]
呵呵,要和这篇结合起来,看看pusofalse写的多好啊。
呵呵。我简单的介绍了,结合实例,才可以更好的理解的。。。

[[i] 本帖最后由 lixiaodaoaaa 于 2008-9-29 15:25 编辑 [/i]]

sihui11 发表于 2008-10-23 16:16

多谢楼主,学习了,学好命令,终身受用

hkmhd 发表于 2008-12-2 14:23

好多参数……这个命令好强大

qq381234916 发表于 2008-12-14 18:54

这个批处理的功能是什么?

下下来看一下。。
  LZ辛苦咯

lanzl 发表于 2009-2-26 11:45

谢谢分享,这个不错
小弟有个提问,上面的是英文的,很多看不懂,

PV有没有这个功能
就是可不可以用它把list.txt文本内不存在的进程全部以-k -f 参数杀掉?

Batcher 发表于 2009-2-26 13:08

回复 6楼 的帖子

一个pv命令无法实现这个效果。
你可以用“进程”作为关键字在本论坛进行搜索。如果仍无法解决问题,可以到相应版块单独发帖求助。

[quote]Q: 如何使用论坛的搜索功能来解决自己的问题?
A: 参考:[url]http://bbs.bathome.net/thread-3473-1-1.html[/url][/quote]

leap 发表于 2010-8-27 22:15

的风格大方古典风格

carson2013 发表于 2013-1-29 16:19

这个命令实在太强了,收了

flaven 发表于 2013-3-4 20:35

很好的第三方!就喜欢第三方~谢谢!

hitman 发表于 2013-4-5 22:57

下载一份,谢谢!

yuanye002 发表于 2013-4-5 22:57

好东西
才看到
顶一个先
再下

ht河豚 发表于 2013-4-6 11:12

收下先,慢慢研究

522235677 发表于 2013-4-6 11:43

可不可以批量监控几个进程呢?
比如,检测QQ.exe chrome.exe 123.exe 44.exe
如果发现有这些进程,就立马结束掉。

lyfanky 发表于 2013-6-3 19:50

收下先,慢慢研究

xiaoniutou001 发表于 2015-3-9 17:42

今天工作中,真好用到此工具,先不管工具怎样,先给楼主的共享精神,表示感谢:victory:

sgnhm 发表于 2015-7-12 08:08

:) :) :) 谢谢版主提供好的东西共享!

wsc993 发表于 2015-7-26 19:21

非常感谢楼主,学习一下!

lihuabin 发表于 2019-5-12 15:24

研究研究,先收下了

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.