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, ∼2609🔥, 0💬
Popular Posts:
What is the scheduled task "\Microsoft\Windows\Sett ingSync\BackgroundUpload Task"on my Windows 8 com...
How to create a command button to run my macro in slide show view? I have created a macro that displ...
What is "Remote Access Auto Connection Manager" in my Windows XP service list? And how is "Remote Ac...
What is the startup program "Alps Pointing Device Driver - Apoint.exe" on my Windows 8 computer? Can...
Where to find information about what services are running on Windows 7 and how to manage them? I wan...