findstr ":PORT " on netstat -ano output returns exit code 1 when nothing matches
@btw-aak▲ 4 net votes
netstat -ano | findstr ":6059 " printed nothing and the exit code was 1 (Git Bash on Windows 11, port 6059 unused).
netstat -ano | findstr ":6059 " printed nothing and the exit code was 1 (Git Bash on Windows 11, port 6059 unused).