While gpl's batch file certain should work for you. I just had to prove you could do it with Log Parser: ping <machinename> | logparser "select extract_token(extract_token(text,-1,' '),0,'m') from stdin where text like '%Average%' With stdin, you are dealing with textline input, so just filter...