查看本机网络信息的cmd脚本

@echo 您的用户名是:%USERDOMAIN%\%username%>"%userprofile%\网络参数.txt"
@echo 您的机器名是:%COMPUTERNAME%>>"%userprofile%\网络参数.txt"
@echo ___________________>>"%userprofile%\网络参数.txt"	 
@echo 您的IP地址参数如下:>>"%userprofile%\网络参数.txt"
@ipconfig>>"%userprofile%\网络参数.txt"
@notepad "%userprofile%\网络参数.txt"
exit

 将上面的代码保存后缀为.cmd格式的文件,然后双击此.cmd文件,即可查看本机网络信息。

你可能感兴趣的:(cmd)