CMD Programming (if then)
Go to solution
Solved by TommyTwommy,
netsh interface show interface name="Wi-Fi" | find /i "Disabled" if %ERRORLEVEL% == 0 ( netsh interface set interface Wi-Fi enable netsh interface set interface Ethernet disable ) else if %ERRORLEVEL% == 1 ( netsh interface set interface Wi-Fi disable netsh interface set interface Ethernet enable ) else ( echo Invalid ErrorLevel )
ok I've managed to do it.. here is the code..
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now