2011-07-21 16 views
2

誰もmsg "No Instance(s)Available"を抑制する方法を知っていますか?次のコマンドから?あなたの助けは前もって高く評価されています!wmicの出力を抑制する方法

wmic process where (name="java.exe") get commandline | findstr /i /c:"xxx" 1>nul 2>&1 

答えて

0

あなたは2>nulを配置する場所を2つの選択肢があり、どちらか

2>nul wmic process where (name="java.exe") get commandline | findstr /i /c:"xxx" 

またはあなたはまた、標準出力へのパイプ標準エラー出力は、あなたはfindstrコマンドのため、それを可視化することができます

wmic process where (name="java.exe") get commandline 2>nul | findstr /i /c:"xxx" 
0

あなたが行うことができます(したがって、あなたのフィルタのために、 "No Instance(s)Available。"は無視されます)。

wmic process where (name="java.exe") get commandline 2>&1 | findstr /i /c:"xxx" 
関連する問題