WMIQUERY /B?

May 20, 2008
12,167
133
Syracuse, NY, USA
When I do this

Code:
v:\> wmiquery /a . "select Name,ProcessId,DisplayName from Win32_service where Started='TRUE'" | head /n7
DisplayName = Application Information
Name = Appinfo
ProcessId = 6092

DisplayName = Windows Audio Endpoint Builder
Name = AudioEndpointBuilder
ProcessId = 1932

the class instances are separated by a single newlines.

But I didn't specify "/B". If I specify "/B" I get two newlines.

Can I get rid of the newlines altogether?
 
May 20, 2008
12,167
133
Syracuse, NY, USA
How do you plan to separate the classes then?

Why do they have to be separated? Is there some confusion here?

Code:
DisplayName = Application Information
Name = Appinfo
ProcessId = 6092
DisplayName = Windows Audio Endpoint Builder
Name = AudioEndpointBuilder
ProcessId = 1932

I'm using @EXECARRAY to put the info in an array. Since I have asked for Name, ProcessId, and DisplayName, I can process the array with

Code:
do i=0 to %@dec[%_execarray] by 3