Use batch processing to export/import wireless network information in Windows, copy Save as Bat

Source: Internet
Author: User

@echo off
Title Export/import wireless network information in Windows

: Begin
Echo ========================
echo Please select the action:
Echo 1 View available wireless networks
Echo 2 Export Wireless network configuration
Echo 3 Import Wireless network configuration
Echo 0 Exit
Echo ========================
set/p choice= Selection:
If%choice%==1 goto Listwifi
If%choice%==2 goto Exportwifi
If%choice%==3 goto Importwifi
If%choice%==0 goto End

: Listwifi
Netsh wlan show profiles
Pause
Goto Begin

: Exportwifi
set/p ssidname= Please enter the ssidname of the wireless network you want to export:
set/p Foldername= Enter the location where you saved the configuration file:
Netsh wlan export profile%ssidname% folder=%foldername%
Goto Begin

: Importwifi
set/p foldername= Please enter the location of the configuration file (including the path file name suffix name):
Netsh wlan add profile filename=%foldername% User=all
Goto Begin

: End
Pause

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.