id: 10c11fb7d3734d8fba9588acfaa4e99e
parent_id: 
item_type: 1
item_id: f83150b19a1f4a55a3689975786fddeb
item_updated_time: 1764365031177
title_diff: "[{\"diffs\":[[1,\"通过Windows命令行设置IP地址 - mrlihub的专栏 - 博客频道 - CSDN\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":45}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>通过Windows命令行设置IP地址 - mrlihub的专栏 - 博客频道 - CSDN.NET</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"14072\\\"></a>\\\r\\\n<h1>通过Windows命令行设置IP地址 - mrlihub的专栏 - 博客频道 - CSDN.NET</h1>\\\r\\\n\\\r\\\n<div><span><div style=\\\"-evernote-webclip:true\\\"><br/><div style=\\\"font-size: 16px; display: inline-block;\\\"><div><div style=\\\"background:url(&quot;../images/body_bg.gif&quot;) repeat-x 0px 20px;text-align:center;color:rgb(51, 51, 51);font-family:Arial,Console,Verdana,Courier New;font-size:12px;\\\"><div style=\\\"background:url(&quot;../images/head_bg.jpg&quot;) no-repeat top;\\\"><div style=\\\"background:rgb(255, 255, 255);border-radius:8px;border-image:none;text-align:left;overflow:hidden;\\\"><div style=\\\"border-radius:4px;border-image:none;overflow:hidden;\\\"><div><div>\\\n    <div style=\\\"font:20px/30px &quot;Microsoft YaHei&quot;;margin:5px 0px;color:rgb(0, 0, 0);display:block;font-size-adjust:none;font-stretch:normal;\\\">   \\\n         <span style=\\\"margin:0px 2px 0px 0px;width:19px;height:19px;display:inline-block;background:url(&quot;../../../images/ico_Repost.gif&quot;) no-repeat 0px 0px;vertical-align:middle;\\\"></span>\\\n\\\n\\\n    <h1 style=\\\"margin:0px;padding:0px;font:20px/30px &quot;Microsoft YaHei&quot;;vertical-align:middle;display:inline;font-size-adjust:none;font-stretch:normal;\\\">\\\n        <span><a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161\\\" style=\\\"color:rgb(0, 0, 0);text-decoration:none;\\\">\\\n        通过Windows命令行设置IP地址            \\\n        </a></span>\\\n    </h1>\\\n</div>\\\n\\\n   \\\n\\\n        <div style=\\\"font:12px/22px Arial;padding:0px 20px 5px;text-align:right;color:rgb(153, 153, 153);font-size-adjust:none;font-stretch:normal;display:block;margin:0px -20px;overflow:hidden;border-bottom-color:rgb(237, 237, 237);border-bottom-width:1px;border-bottom-style:solid;\\\">\\\n        <div>\\\n            <span style=\\\"margin:0px 5px 0px 0px;\\\">2014-04-29 09:36</span>\\\n            <span style=\\\"margin:0px 5px;background:url(&quot;../../../images/ico_view.png&quot;) no-repeat left;padding:0px 0px 0px 14px;\\\" title=\\\"阅读次数\\\">323人阅读</span>\\\n            <span style=\\\"margin:0px 5px;background:url(&quot;../../../images/ico_comm.png&quot;) no-repeat left;padding:0px 0px 0px 14px;\\\" title=\\\"评论次数\\\"> <a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161#comments\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;\\\">评论</a>(0)</span>\\\n            <span style=\\\"margin:0px 5px;\\\"> <a href=\\\"#\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;\\\" title=\\\"收藏\\\">收藏</a></span>\\\n             <span style=\\\"margin:0px 5px;\\\"> <a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161#report\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;\\\" title=\\\"举报\\\">举报</a></span>\\\n\\\n        </div>\\\n    </div>\\\n    \\\n    \\\n    \\\n      <div style=\\\"display:block;margin:0px -20px;padding:5px 20px;border-bottom-color:rgb(237, 237, 237);border-bottom-width:1px;border-bottom-style:solid;\\\">\\\n        <div style=\\\"display:inline-block;width:70px;color:rgb(51, 51, 51);line-height:28px;font-size:14px;float:left;\\\">\\\n           <img src=\\\"通过Windows命令行设置IP地址 - mrlihub的专栏 - 博客频道 - CSDN_files/category_icon.jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"category_icon.jpg\\\" height=\\\"13\\\" style=\\\"border:medium;border-image:none;vertical-align:middle;\\\" width=\\\"15\\\"/>\\\n            <span style=\\\"vertical-align:middle;display:inline-block;\\\">分类：</span>\\\n        </div>\\\n        <div style=\\\"display:inline-block;width:90%;color:rgb(223, 52, 52);font-size:14px;float:left;\\\">\\\n                    <span style=\\\"line-height:28px;margin-left:15px;display:inline-block;position:relative;cursor:pointer;\\\">\\\n                        <span>eeworld<em style=\\\"font-style:normal;\\\">（6）</em></span>\\\n                      <img src=\\\"通过Windows命令行设置IP地址 - mrlihub的专栏 - 博客频道 - CSDN_files/arrow_triangle _down.jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"arrow_triangle _down.jpg\\\" height=\\\"5\\\" style=\\\"border:medium;border-image:none;display:inline;\\\" width=\\\"10\\\"/>\\\n                      \\\n                        \\\n                    </span>                    \\\n        </div>\\\n    </div>\\\n      \\\n\\\n  \\\n\\\n  \\\n  \\\n     \\\n\\\n<div style=\\\"font:14px/26px Arial;margin:20px 0px 0px;font-size-adjust:none;font-stretch:normal;\\\">\\\n\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">最近在公司，在客户现场，在家里，使用不同的网络，经常要设置IP，每天要设置几次，很麻烦。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">于是想到了“命令行+批处理+环境变量”的方法，这样设置IP不再是麻烦事了。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">1. 在Windows中，常规设置IP的方法：<br style=\\\"word-wrap:break-word;\\\"/>\\\n<br style=\\\"word-wrap:break-word;\\\"/>\\\n</span><span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">开始-控制面板-网络连接-本地连接-属性-常规Internet协议，选择自动获取，或手动设置IP和DNS。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2. 在Windows中，“命令行+批处理+环境变量”设置IP的方法：<br style=\\\"word-wrap:break-word;\\\"/>\\\n<br style=\\\"word-wrap:break-word;\\\"/>\\\n2.1. netsh命令介绍：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.1.1. 设置动态获取IP地址和和自动获取DNS（DHCP）：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">C:\\\\&gt;netsh interface ip set address name=&quot;本地连接&quot; source=dhcp</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">C:\\\\&gt;netsh interface ip set dns name=&quot;本地连接&quot; source=dhcp</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.1.2. 设置固定IP和DNS：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">C:\\\\&gt;netsh interface ip set address name=&quot;本地连接&quot; source=static addr=192.168.0.110 mask=255.255.255.0 gateway=192.168.0.1</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">C:\\\\&gt;netsh interface ip set dns name=&quot;本地连接&quot; source=static addr=202.106.196.115 register=primary</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.1.3. 设置多个固定的DNS：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">C:\\\\&gt;netsh interface ip add dns name=&quot;本地连接&quot; addr=202.106.0.20 index=2</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.2. 参数说明：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">name：网络连接名称，一般为“本地连接”或“无线网络连接”。可以在“控制面板”-&gt;“网络连接”中查看到网络连接的名称。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">source：获取IP的途径。动态获取为dhcp；手动设置为static。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">addr：要设置的IP地址或DNS地址。 </span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">mask：指定IP地址的子网掩码。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">gateway：制定IP地址的网关地址。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">gwmetric：默认网关的跃点数，可以设置为整型数值，也可以设置为“自动”：auto。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">register：none为禁用动态DNS注册，primary为只在主DNS后缀下注册，both为在主 DNS 后缀下注册，也在特定连接后缀下注册。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">index：为指定的DNS服务器地址指定索引(首选项)。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.3. 编写设置IP/DNS的批处理文件：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">了解netsh命令后，我们编写bat脚本：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.3.1. 编写bat脚本通过dhcp自动获取IP和DNS：<br style=\\\"word-wrap:break-word;\\\"/>\\\n<br style=\\\"word-wrap:break-word;\\\"/>\\\n</span><span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">新建一个文本文档名称为dhcp，将后缀改为bat。编辑dhcp.bat文件，内容如下：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">@echo off<br style=\\\"word-wrap:break-word;\\\"/>\\\n@echo setting ip address of dhcp<br style=\\\"word-wrap:break-word;\\\"/>\\\n</span><span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">netsh interface ip set address name=&quot;本地连接&quot; source=dhcp</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">netsh interface ip set dns name=&quot;本地连接&quot; source=dhcp</span><span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"><br style=\\\"word-wrap:break-word;\\\"/>\\\n@echo ip has been set successfully<br style=\\\"word-wrap:break-word;\\\"/>\\\n</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.3.2. 编写bat脚本设置固定IP：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">新建一个文本文档名称为110，将后缀改为bat。编辑110.bat文件，内容如下：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">@echo off<br style=\\\"word-wrap:break-word;\\\"/>\\\n@echo setting ip address of 192.168.0.110<br style=\\\"word-wrap:break-word;\\\"/>\\\n</span><span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">netsh interface ip set address name=&quot;本地连接&quot; source=static addr=192.168.0.110 mask=255.255.255.0 gateway=192.168.0.1</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">netsh interface ip set dns name=&quot;本地连接&quot; source=static addr=202.106.196.115 register=primary</span><span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"><br style=\\\"word-wrap:break-word;\\\"/>\\\n</span><span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">netsh interface ip add dns name=&quot;本地连接&quot; addr=202.106.0.20 index=2</span><span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"><br style=\\\"word-wrap:break-word;\\\"/>\\\n@echo ip has been set successfully</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.4. 设置环境变量：<br style=\\\"word-wrap:break-word;\\\"/>\\\n<br style=\\\"word-wrap:break-word;\\\"/>\\\n</span><span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">将批处理文件保存在某个目录如：C:\\\\home\\\\bin</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">将C:\\\\home\\\\bin添加到环境变量：</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">右击我的电脑-属性-高级-环境变量-系统变量，编辑path变量，在变量值中加入C:\\\\home\\\\bin。点击确定关闭窗口。</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">2.5. 设置IP</span><br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<br style=\\\"word-wrap:break-word;font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\"/>\\\n<span style=\\\"font-family:Tahoma,'Microsoft Yahei',Simsun;font-size:14px;line-height:25.200000762939453px;\\\">打开Windows命令行窗口，输入dhcp或110，回车即可设置自动获取IP，或设置固定IP。</span>\\\n   \\\n</div>\\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n<div style=\\\"zoom:1;float:right;\\\">\\\n<a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161#\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;background-position:0 0 !important;background-image:url('http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png') !important;margin:6px 6px 6px 0px;height:16px;line-height:16px;padding-left:17px;font-size:12px;background-repeat:no-repeat;cursor:pointer;float:left;\\\"></a>\\\n<a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161#\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;background-position:0 -52px !important;margin:6px 6px 6px 0px;height:16px;background-image:url(&quot;../img/share/icons_0_16.png?v=91362611.png&quot;);line-height:16px;padding-left:17px;font-size:12px;background-repeat:no-repeat;cursor:pointer;float:left;\\\" title=\\\"分享到QQ空间\\\"></a>\\\n<a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161#\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;background-position:0 -104px !important;margin:6px 6px 6px 0px;height:16px;background-image:url(&quot;../img/share/icons_0_16.png?v=91362611.png&quot;);line-height:16px;padding-left:17px;font-size:12px;background-repeat:no-repeat;cursor:pointer;float:left;\\\" title=\\\"分享到新浪微博\\\"></a>\\\n<a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161#\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;background-position:0 -260px !important;margin:6px 6px 6px 0px;height:16px;background-image:url(&quot;../img/share/icons_0_16.png?v=91362611.png&quot;);line-height:16px;padding-left:17px;font-size:12px;background-repeat:no-repeat;cursor:pointer;float:left;\\\" title=\\\"分享到腾讯微博\\\"></a>\\\n<a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161#\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;background-position:0 -208px !important;margin:6px 6px 6px 0px;height:16px;background-image:url(&quot;../img/share/icons_0_16.png?v=91362611.png&quot;);line-height:16px;padding-left:17px;font-size:12px;background-repeat:no-repeat;cursor:pointer;float:left;\\\" title=\\\"分享到人人网\\\"></a>\\\n<a href=\\\"http://blog.csdn.net/u013691997/article/details/24693161#\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;background-position:0 -1612px !important;margin:6px 6px 6px 0px;height:16px;background-image:url(&quot;../img/share/icons_0_16.png?v=91362611.png&quot;);line-height:16px;padding-left:17px;font-size:12px;background-repeat:no-repeat;cursor:pointer;float:left;\\\" title=\\\"分享到微信\\\"></a>\\\n</div>\\\n\\\n\\\n\\\n   \\\n\\\n    \\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n \\\n\\\n\\\n        <div style=\\\"margin:0px auto;padding:30px 0px 15px;width:182px;text-align:center;clear:both;display:block;\\\">\\\n            <dl style=\\\"background:rgb(153, 153, 153);margin:0px 2px;width:72px;height:72px;text-align:center;overflow:hidden;display:inline-block;float:left;color:rgb(255, 255, 255);\\\">\\\n               \\\n                 <dt style=\\\"font:27px/30px &quot;Microsoft YaHei&quot;;margin:0px;padding:12px 0px 3px;color:rgb(255, 255, 255);font-size-adjust:none;font-stretch:normal;\\\">顶</dt>\\\n                <dd style=\\\"font:12px/22px Arial;margin:0px;color:rgb(255, 255, 255);font-size-adjust:none;font-stretch:normal;\\\">0</dd>\\\n            </dl>\\\n           \\\n              \\\n            <dl style=\\\"background:rgb(153, 153, 153);margin:0px 2px;width:72px;height:72px;text-align:center;overflow:hidden;display:inline-block;float:left;color:rgb(255, 255, 255);\\\">\\\n              \\\n                  <dt style=\\\"font:27px/30px &quot;Microsoft YaHei&quot;;margin:0px;padding:12px 0px 3px;color:rgb(255, 255, 255);font-size-adjust:none;font-stretch:normal;\\\">踩</dt>\\\n                <dd style=\\\"font:12px/22px Arial;margin:0px;color:rgb(255, 255, 255);font-size-adjust:none;font-stretch:normal;\\\">0</dd>               \\\n            </dl>\\\n            \\\n        </div>\\\n     <div><a href=\\\"#\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;\\\"> </a>   </div>\\\n    <div> <a href=\\\"#\\\" style=\\\"color:rgb(51, 102, 153);text-decoration:none;\\\"> </a></div>\\\n    \\\n\\\n   <ul style=\\\"margin-top:30px;font:14px/24px &quot;Microsoft YaHei&quot;,Arial,Helvetica,sans-serif;margin:0px 0px 5px;padding:10px 0px 0px;color:rgb(102, 102, 102);clear:both;display:block;font-size-adjust:none;font-stretch:normal;float:left;\\\">\\\n                <li style=\\\"padding:0px 0px 3px;overflow:hidden;clear:both;list-style-type:none;\\\"><span style=\\\"padding:0px 0px 0px 27px;width:52px;height:26px;color:rgb(255, 255, 255);font-size:14px;margin-right:7px;display:block;float:left;background-color:rgb(153, 153, 153);background-position:9px 8px;background-image:url(&quot;../images/blog-page-arr.png&quot;);background-repeat:no-repeat;\\\">上一篇</span><a href=\\\"http://blog.csdn.net/u013691997/article/details/24693093\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;font-size:14px;display:block;float:left;\\\">opencv：轮廓contour</a></li>\\\n                <li style=\\\"padding:0px 0px 3px;overflow:hidden;clear:both;list-style-type:none;\\\"><span style=\\\"padding:0px 0px 0px 27px;width:52px;height:26px;color:rgb(255, 255, 255);font-size:14px;margin-right:7px;display:block;float:left;background-color:rgb(153, 153, 153);background-position:9px -22px;background-image:url(&quot;../images/blog-page-arr.png&quot;);background-repeat:no-repeat;\\\">下一篇</span><a href=\\\"http://blog.csdn.net/u013691997/article/details/24693271\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;font-size:14px;display:block;float:left;\\\">opencv中的CV_LOAD_IMAGE_GRAYSCALE与WINDOW_AUTOSIZE</a></li>\\\n    </ul>\\\n\\\n    <div style=\\\"clear:both;height:10px;\\\"></div>\\\n\\\n\\\n        <div style=\\\"overflow:hidden;\\\">\\\n                <h4 style=\\\"margin:0px;padding:0px;color:rgb(51, 51, 51);font-size:16px;\\\">我的同类文章</h4>\\\n                <div style=\\\"border:1px solid rgb(187, 187, 187);border-image:none;margin:20px 0px 0px 0px;\\\">\\\n                    <div style=\\\"line-height:45px;border-bottom-color:rgb(220, 220, 220);border-bottom-width:1px;border-bottom-style:solid;\\\">\\\n                                <span style=\\\"color:rgb(102, 102, 102);font-size:16px;margin-left:25px;display:inline-block;font-weight:bold;\\\">\\\n                                    <span style=\\\"cursor:pointer;\\\">eeworld<em style=\\\"font-style:normal;\\\">（6）</em></span>\\\n                                </span>\\\n                    </div>\\\n                   \\\n                    <div style=\\\"background:rgb(252, 252, 252);padding:10px 20px;overflow-y:auto;max-height:195px;\\\">\\\n                        \\\n                        <ul style=\\\"float:left;list-style:none;margin:0px;padding:0px;width:49%;\\\"><li style=\\\"list-style:none;line-height:30px;\\\"><em style=\\\"font-style:normal;margin-right:10px;vertical-align:middle;display:inline-block;\\\">•</em><a href=\\\"http://blog.csdn.net/u013691997/article/details/24693815\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;width:50%;overflow:hidden;vertical-align:middle;display:inline-block;white-space:nowrap;text-overflow:ellipsis;\\\" target=\\\"_blank\\\" title=\\\"vim编辑器\\\">vim编辑器</a><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\">2014-04-29</span><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\"><i style=\\\"font-style:normal;font-weight:normal;\\\">阅读</i><b style=\\\"font-style:normal;font-weight:normal;margin-left:5px;\\\">255</b></span></li> <li style=\\\"list-style:none;line-height:30px;\\\"><em style=\\\"font-style:normal;margin-right:10px;vertical-align:middle;display:inline-block;\\\">•</em><a href=\\\"http://blog.csdn.net/u013691997/article/details/24693363\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;width:50%;overflow:hidden;vertical-align:middle;display:inline-block;white-space:nowrap;text-overflow:ellipsis;\\\" target=\\\"_blank\\\" title=\\\"opencv之pyrDown与pyrUp\\\">opencv之pyrDown与pyrUp</a><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\">2014-04-29</span><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\"><i style=\\\"font-style:normal;font-weight:normal;\\\">阅读</i><b style=\\\"font-style:normal;font-weight:normal;margin-left:5px;\\\">341</b></span></li> <li style=\\\"list-style:none;line-height:30px;\\\"><em style=\\\"font-style:normal;margin-right:10px;vertical-align:middle;display:inline-block;\\\">•</em><a href=\\\"http://blog.csdn.net/u013691997/article/details/24693093\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;width:50%;overflow:hidden;vertical-align:middle;display:inline-block;white-space:nowrap;text-overflow:ellipsis;\\\" target=\\\"_blank\\\" title=\\\"opencv：轮廓contour\\\">opencv：轮廓contour</a><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\">2014-04-29</span><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\"><i style=\\\"font-style:normal;font-weight:normal;\\\">阅读</i><b style=\\\"font-style:normal;font-weight:normal;margin-left:5px;\\\">388</b></span></li> </ul>\\\n\\\n                        <ul style=\\\"float:right;list-style:none;margin:0px;padding:0px;width:49%;\\\"><li style=\\\"list-style:none;line-height:30px;\\\"><em style=\\\"font-style:normal;margin-right:10px;vertical-align:middle;display:inline-block;\\\">•</em><a href=\\\"http://blog.csdn.net/u013691997/article/details/24693437\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;width:50%;overflow:hidden;vertical-align:middle;display:inline-block;white-space:nowrap;text-overflow:ellipsis;\\\" target=\\\"_blank\\\" title=\\\"opencv之图像混合（blending）\\\">opencv之图像混合（blending）</a><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\">2014-04-29</span><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\"><i style=\\\"font-style:normal;font-weight:normal;\\\">阅读</i><b style=\\\"font-style:normal;font-weight:normal;margin-left:5px;\\\">295</b></span></li> <li style=\\\"list-style:none;line-height:30px;\\\"><em style=\\\"font-style:normal;margin-right:10px;vertical-align:middle;display:inline-block;\\\">•</em><a href=\\\"http://blog.csdn.net/u013691997/article/details/24693271\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;width:50%;overflow:hidden;vertical-align:middle;display:inline-block;white-space:nowrap;text-overflow:ellipsis;\\\" target=\\\"_blank\\\" title=\\\"opencv中的CV_LOAD_IMAGE_GRAYSCALE与WINDOW_AUTOSIZE\\\">opencv中的CV_LOAD_IMAGE_GRAYSCALE与WINDOW_AUTOSIZE</a><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\">2014-04-29</span><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\"><i style=\\\"font-style:normal;font-weight:normal;\\\">阅读</i><b style=\\\"font-style:normal;font-weight:normal;margin-left:5px;\\\">1143</b></span></li> <li style=\\\"list-style:none;line-height:30px;\\\"><em style=\\\"font-style:normal;margin-right:10px;vertical-align:middle;display:inline-block;\\\">•</em><a href=\\\"http://blog.csdn.net/u013691997/article/details/24692991\\\" style=\\\"color:rgb(51, 51, 51);text-decoration:none;width:50%;overflow:hidden;vertical-align:middle;display:inline-block;white-space:nowrap;text-overflow:ellipsis;\\\" target=\\\"_blank\\\" title=\\\"安卓系统的账户与同步\\\">安卓系统的账户与同步</a><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\">2014-04-29</span><span style=\\\"color:rgb(187, 187, 187);font-size:12px;margin-left:9px;display:inline-block;\\\"><i style=\\\"font-style:normal;font-weight:normal;\\\">阅读</i><b style=\\\"font-style:normal;font-weight:normal;margin-left:5px;\\\">559</b></span></li> </ul>\\\n                    </div>\\\n                </div>\\\n            </div>    \\\n    \\\n      \\\n</div></div></div></div></div></div></div></div><br/></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":30142}]"
metadata_diff: {"new":{"id":"f83150b19a1f4a55a3689975786fddeb","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348878643,"user_updated_time":1764345578225,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":1764365031177},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:24:58.818Z
created_time: 2025-11-28T21:24:58.818Z
type_: 13