Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Get rid of WMIQUERY's blank lines ...

May
13,191
180
... in situations like the one below (or give me the option to do so).

Code:
v:\> wmiquery /a . "select name from Win32_service where ProcessId=1032"
BrokerInfrastructure

DcomLaunch

PlugPlay

Power

SystemEventsBroker


v:\>
 
A temporary solution;
Code:
wmiquery /a . "select name from Win32_service where ProcessId=1032" | tpipe /simple=10

Joe
 
Or, create an alias;
Code:
RemoveBlankLines=tpipe /simple=10
then
Code:
wmiquery /a . "select name from Win32_service where ProcessId=1032" | RemoveBlankLines

Joe
 
Or, create an alias;
Code:
RemoveBlankLines=tpipe /simple=10
then
Code:
wmiquery /a . "select name from Win32_service where ProcessId=1032" | RemoveBlankLines

Joe
or ffind /k /m /v /e"." (.148 s)
or grep . (.081 s)
or findstr /r "." (.086 s)

TPIPE is, by far, the slowest at .570 s.
 
Yikes, that is slow.

I've changed my alias to
Code:
RemoveBlankLines=findstr /r "."

Thanks for the benchmarks.

Joe
 
Back
Top
[FOX] Ultimate Translator
Translate