1、列举本机保存的wifi的配置文件;

netsh wlan show profiles

2、使用dos命令连接上面列出的profiles配置;

netsh wlan connect name={WIFI名称}

3、断开连接

netsh wlan disconnect