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, ∼3001🔥, 0💬
Popular Posts:
How to remove realsched.exe from the startup application list to gain performance and reduce securit...
What is the "Background Tasks Infrastructure Service (BrokerInfrastructure)" system service on Windo...
How to download ActivePerl 5.8.8.820? If you are interested in using Perl on your Windows system, yo...
What is "CNG Key Isolation" in my Windows XP service list? And how is "CNG Key Isolation" service re...
Where to find tutorials on using Windows Vista computers? I want to learn how to use Windows Vista m...