Netstat output breaks line when -aonb options are used. I can't use FIND to filter the output in one line.
Increasing Screen buffer width and Window width doesn't help. The command still breaks into new lines. Its the same with powershell.
netstat -aonb Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1304 RpcSs [svchost.exe] TCP 0.0.0.0:27036 0.0.0.0:0 LISTENING 11096 [Steam.exe] TCP 0.0.0.0:49665 0.0.0.0:0 LISTENING 1680 Schedule [svchost.exe] TCP 0.0.0.0:49666 0.0.0.0:0 LISTENING 1632 EventLog [svchost.exe]
I want to use FIND command to filter the ports used by process, but since it break lines, I could not filter it.
netstat -aonb | FIND "svchost.exe" [svchost.exe]