In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how to achieve IP dynamic switching bat script, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.
Create a new "IP switching script .bat" file, copy the following code into it, save it, and add the startup item, so that every time you choose your location when you boot, you can automatically switch IP ~
The code is very simple, if you want to add settings, I think you will understand it!
The code is as follows:
@ echo off color 0a title IP switching script-Create by Adobo@qq.com: start @ echo-- @ echo Please select your current location: @ echo 1. At home (enable DHCP) @ echo 2. Office (fixed IP) @ echo-- set / p sLocal= Please select: if% sLocal%==1 goto home if% sLocal%==2 goto office cls @ echo Please re-select goto start: home @ echo is setting wireless network connection to DHCP mode netsh interface ip set address wireless network connection dhcp goto end: office @ echo is setting wireless network connection as fixed IP:10.253.1.80 netsh interface ip set address wireless network connection static 10.253.1.80 255.255.252.0 10.253.0.1 1: end echo setting is complete Automatic exit on "how to achieve IP dynamic switching bat script" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.