如何用命令提示符打开80等端口?

来源:百度知道 编辑:UC知道 时间:2024/06/23 09:13:48
可以给我具体的命令吗?

::Mydemo.bat内容如下
@echo off
rem this is Mydemo
rem test in winxp by Mydemo
echo %1 %2 %3 %4 %5 %6 %7 %8 %9|%systemroot%\system32\findstr.exe " [0-9] ">nul&&goto help
echo %1 %2 %3 %4 %5 %6 %7 %8 %9|%systemroot%\system32\findstr.exe /i " ^a ^b ^c ^d ^e ^f ^g ^h ^i ^j ^k ^l ^m ^n ^o ^p ^q ^r ^s ^t ^u ^v ^w ^x ^y ^z ">nul&&goto help
echo %1 %2 %3 %4 %5 %6 %7 %8 %9|%systemroot%\system32\findstr.exe /i " \<-[ers] ">nul&&goto ers
echo %1 %2 %3 %4 %5 %6 %7 %8 %9|%systemroot%\system32\findstr.exe /i " \<-[anop] ">nul&&goto ano
goto help
:ers
%systemroot%\system32\netstat.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
:ano
%systemroot%\system32\netstat.exe %1 %2 %3 %4 %5 %6 %7 %8 %9>netstat.tmp
type netstat.tmp|%systemroot%\system32\findstr.exe /v "\<127.0.0.1\> 4000"
goto end