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, 2141🔥, 0💬
Popular Posts:
How to Verify Apache server configuration for PHP scripts support? If you have followed our Configur...
What is MUWebControl Class - Download Program Files (DPF)? MUWebControl Class is a Download Program ...
How to add comments on slides? I am reviewing someone else's presentation and I want to add some com...
What is the scheduled task "\Microsoft\Windows\Wini net\CacheTask"on my Windows 7 computer? "\Micros...
A new tab called "Boot" is added in "msconfig" tool on Windows Vista and Windows 7. What is this "Bo...