When using the Batch Processing IP address-netsh command, many people may encounter a situation where a fixed IP address is set to connect to the LAN and then to the Internet in the Unit and in the laptop computer used for normal work, in some cases, you may need to set it to the "auto get" method to automatically allocate IP addresses (of course, currently, hotels on a business trip generally use wireless devices and do not need to refer to this article). At this time, when switching, it is annoying to click here. This article introduces a simple method to simplify this operation. The method described in this article is based on the netsh command. This is an operating system command that comes with Windows XP and Windows 7. It has a rich set of functions. You can search for the information about this command by yourself. Here, only the functions related to IP addresses are described. Set automatic IP and automatic DNS netsh interface ip set address name = "Local Connection" source = dhcpnetsh interface ip set dns name = "Local Connection" source = dhcp set fixed IP and fixed DNS netsh interface ip set address name = "Local Connection" source = static addr = 192.168.1.10 mask = 255.255.255.0netsh interface ip set address name = "Local Connection" gateway = 192.168.1.1 gwmetric = 0 netsh interface ip set dns name = "Local Connection" source = static addr = 202.96.209.5 register = PRIMARY can write these two commands in batches for processing, in In resource manager, double-click to run it! An example is as follows: netsh wlan set hostednetwork mode = allow ssid = MYSSID key = 12345678 netsh wlan start hostednetwork remember to run this wifi hotspot command in win7 as an administrator!