Categories:
Email 🠪 Servers 🠪 Testing 🠪 Tips
Hardware 🠪 3D Printing 🠪 Apple 🠪 Batteries 🠪 Drives 🠪 Edgerouter 🠪 Electronics 🠪 Laptop 🠪 Modems 🠪 Phone 🠪 Printers 🠪 Raspberry Pi 🠪 Tablets 🠪 Testing 🠪 Virtualization
hidden 🠪 General
Links 🠪 Interesting 🠪 Media
Network 🠪 Data 🠪 Testing 🠪 VPN
Scripts 🠪 Batch 🠪 Linux 🠪 Powershell
Servers 🠪 Databases 🠪 Misc 🠪 Website
Software 🠪 Other
Utilities 🠪 Backup 🠪 Fix Issues 🠪 Recovery
Video 🠪 Editing
Websites 🠪 HTML 🠪 Testing
Windows 🠪 Adjustments 🠪 Issues 🠪 Remote Desktop 🠪 Sercurity 🠪 Slow 🠪 Software 🠪 Startup
Submit Entry | Airin's Notes
Category: Scripts 🠪 Batch Cycle Network adapter to make the link light flash | September 25, 2023 | @echo off
set message=Press C to cancel this script.
set delay=10
set interface=Ethernet
set /a count = 0
echo Starting disabling of '%interface%'interface. It will be disabled every %delay% seconds.
:start
set /a count += 1
echo.
echo.
echo Disabling Ethernet... Loop #%count%
netsh interface set interface "%interface%" disabled
CHOICE /C CL /M "%message%" /D L /T %delay% /N
if '%ERRORLEVEL%'=='1' goto done
echo Enabling Ethernet... Loop #%count%
netsh interface set interface "%interface%" enabled
CHOICE /C CL /M "%message%" /D L /T %delay% /N
if '%ERRORLEVEL%'=='1' goto done
echo.
echo ----------------------
goto start
:done
echo Enabling interface "%interface%"...
netsh interface set interface "%interface%" enabled
echo All done!
timeout 3
|
|