Collections:
Other Resources:
Get adapter name as variable
This batch file works, but the adapter name has to be hard coded, is there a way to put the name into a variable from netsh so that the code can be generic?
@echo off
echo Please wait ... Enabling adapter ...
netsh interface show interface name="Wi-Fi" | find /i "DISCONNECTED" >nul && netsh interface set interface "Wi-Fi" ENABLE"
netsh interface show interface name="Ethernet" | find /i "DISCONNECTED" >nul && netsh interface set interface "Ethernet" ENABLE"
echo Process completed
timeout /t 10
✍: Guest
2014-08-29, ∼2886🔥, 0💬
Popular Posts:
What is "SSDP Discovery" in my Windows 7 service list? And how is "SSDP Discovery" service related t...
Can I disable Windows service "Network DDE DSDM" to speedup my computer? Microsoft application servi...
What is "Protexis Licensing V2" in my Windows 7 service list? And how is "Protexis Licensing V2" ser...
What is lsass.exe process - LSA Shell (Export Version)? Process lsass.exe is the Local Security Auth...
Can I disable Windows service "Distributed Link Tracking Client" to speedup my computer? Windows ser...