본문 바로가기

Windows

netstat -ano 1 |findstr "string"결과를 알아보기 쉽게 바꾸기(feat.bat파일)

netstat -ano 1 |findstr "string" 명령어의 단점 : 출력 결과가 구분없이 반복되어 보기가 힘듬

이에 아래와 같이 메모장에 입력 후 확장자를 bat로 저장 후 실행

*[string] 부분에는 찾을 문자열

@echo off
:return
netstat -an |findstr "[string]"
timeout 1
goto return