WIN7 查出目前服務資訊之二 使用 find 、 findstr

上一篇
WIN7 查出目前服務資訊之一


FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[...]]

"string" 這個命令行參數指定找到此字符串。
[[drive:][path]filename[...]] 指定一個或多個文件進行搜索。
標誌:

/ V 顯示不包含指定字符串的所有行。
/ C 顯示包含字符串的行只計數。
/ N 顯示與所顯示的行數的。
/ I 搜索字符串時忽略字符的大小寫。

例:
sc queryex type= service state= all | find /i "NAME"
圖1


圖2


參考:
find (command)
http://en.wikipedia.org/wiki/Find_(command)

MS-DOS findstr command help - Computer Hope
http://www.computerhope.com/findhlp.htm

例:
sc queryex type= service state= all | findstr /i "NAME PID"
圖3


圖4


參考:
MS-DOS findstr command help - Computer Hope




下一篇
WIN7 查出目前服務資訊之三 使用taskkill




















其它文章

arrow
arrow
    文章標籤
    windows cmd find findstr
    全站熱搜

    PG Levin Li 發表在 痞客邦 留言(0) 人氣()