connect to a wifi network using batch or vb script

2019-04-15 16:27发布

问题:

I am trying to write a batch to automatically connect to a WiFi connection that has been set before on the system, I have tried using some other methods such as using NirCMD but unfortunately that doesn't work either.

any help would be appreciated

thanks in advance

回答1:

You can use this command from a dos console:

netsh wlan connect name=[wireless network]