|
Answer» Hi all,
Has been a while since I've had to look at a dos SCRIPT, so please excuse my failing skillset (or what's left of it).
If I execute `logman query` on a Windows 2003 SERVER I get the following ...Code: [Select]C:\> logman query
Collection TYPE Status ------------------------------------------------------------------------------- ITNU-W2 Counter Running ITNU-W8 Counter Running ITNU-QA2 Counter Running ITNU-W3 Counter Running System Overview Counter Stopped ITNU-DB2 Counter Running ITNU-DB1 Counter Running ITNU-DB8 Counter Running ITNU-W1 Counter Running ITNU-W7 Counter Running
The COMMAND completed successfully.
C:\>I know how to perform a FOR loop to extract columns 1, 2 & 3. But how should I script it to exclude lines that do not contain the word `Counter` ??
Sorry for the newbie type question.
Cheers, CameronNever MIND guys ...
Solution was ... `logman query | findstr /C:"Counter" `
|