CMD that connects me automatically with wlan?

Viewed 23

So I have issues with my wlan.

My wlan looses connection and I have to connect to it manually.

So now I want a program that connects me to my wlan if I´m not connected to it.

( I'm very new at cmd)

Here is my code that I have right now.

:restart

netsh wlan show interfaces | findstr "MYWLAN"
IF %ERRORLEVEL% EQU 0 GOTO connected

:connected
netsh wlan connect name=MYWLAN

timeout /T 1

GOTO restart

Right now, when I let the program run, I lose my wlan connection but i dont know what is wrong

0 Answers
Related