欢迎光临
我们一直在努力

Windows使用正则表达式查看端口

netstat --help#获取帮助
netstat -an > c:\aaa.txt #将显示的结果输入到C盘aaa.txt文件中

netstat -ano | find “443”#查看443端口

@echo off
netstat -an > c:\t.txt #在C盘创建文件名为t.txt
type c:\t.txt | find ":21" > tmp.txt && echo "ftp is running…."
type c:\t.txt | find ":80" > tmp.txt && echo "http is running…."
pause
type c:\t.txt | find ":123" > tmp.txt && echo "hehe is running…."
pause
del c:\t.txt
::这是我试验用于检测各项服务是否开启

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。