@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