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, 2149🔥, 0💬
Popular Posts:
What is the startup program "hkcmd Module - hkcmd.exe" on my Windows 8 computer? Can I remove it to ...
Windows Vista Security basics - Understanding security and safe computing - Update Windows automatic...
A new tab called "Boot" is added in "msconfig" tool on Windows Vista and Windows 7. What is this "Bo...
What is the installed program "Update for (KB2504637)" on my Windows 7 computer? "Update for (KB2504...
If you are using a wireless router to connecting to the Internet through a DSL modem, how many IP ad...