WMIQUERY /B?

May 20, 2008
11,285
95
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
11,285
95
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
 
Similar threads
Thread starter Title Forum Replies Date
vefatica @EXECARRAY[WMIQUERY ...] Support 3
vefatica WMIQUERY query Support 2
vefatica WAD WMIQUERY Support 5
vefatica WMIQUERY anomaly Support 1
vefatica WMIQUERY vs. @WMI? Support 3
vefatica SQL, (remote) WMI, @WMIQUERY Support 2

Similar threads