I´m new in this forum, because in need help writing a specific script for my brother´s PC for connecting with our Wifi after 10s, he started his PC. It´s a Tower, so he
is using an adapter to get wifi, but this causes problems, when the wlan is on during the booting up. Therefor i want to write a batch script, that solves this problem with a little countdown:
Code: Select all
timeout>nul /t 10 /nobreak
After this short periode the batch-file should start his wifi and connecting to our Wlan "FRITZ!Box Fon WLAN 7390" with the example keyword "123456".
I tried it already with this code
Code: Select all
netsh wlan add profile filename="WiFi-FRITZ!Box Fon WLAN 7390.xml" interface="Wifi" user=current
netsh wlan connect name="WiFi-FRITZ!Box Fon WLAN 7390.xml" ssid="FRITZ!Box Fon WLAN 7390" interface="WiFi"
pause
Of course I created a XML file for my Wlan, but it doest work at all.
At the end I would copy the finished batch in the autorun folder
Please help.
Vinzenz
PS: We both use win10 and the same network