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, ∼2872🔥, 0💬
Popular Posts:
What is the installed program "Apple Application Support (64-bit)" on my Windows 7 computer? "Apple ...
What is the scheduled task "\Microsoft\Windows\NetC fg\BindingWorkItemQueueH andler"on my Windows 8 c...
Can I disable Windows service "OracleJobSchedulerXE" to speedup my computer? Third party application...
What is CLI.exe - Process - ATI CLI Application (Command Line Interface)? Process CLI.exe is the ATI...
How can I tell the number of CPU or logical processors on my Windows Server 2016? To find out how ma...