winows显示IP主机名bat

来源:互联网 发布:js将数组转换成字符串 编辑:程序博客网 时间:2024/06/05 07:54

公司中会有些妹妹,远程支持的时候问下 IP是多少,还不知道怎么查看的。
特此写了一个批处理文件

  1. windows +R 键盘 输入 cmd
  2. cmd里输入 notepad
  3. 把下面的代码复制到打开的记事本里
@echo 您的用户名是:%USERDOMAIN%\%username%>"%userprofile%\网络参数.txt"@echo 您的机器名是:%COMPUTERNAME%>>"%userprofile%\网络参数.txt"@echo ____________________________ >>"%userprofile%\网络参数.txt"@echo 您的IP地址参数如下: >>"%userprofile%\网络参数.txt"@ipconfig>>"%userprofile%\网络参数.txt"@notepad "%userprofile%\网络参数.txt"exit
  1. 保存文件,保存时一定要选择类型为 “所有文件”,文件名命名为 *.bat (注意后缀一定是bat)**
0 0
原创粉丝点击