인터넷이 작동하고 있고 필요한 경우연결되어 있거나 없을 때 추적하는 가장 간단한 방법은 Windows 10의 시스템 트레이에있는 WiFi 기호를 주시하는 것입니다. 인터넷 연결이 끊어지면 WiFi 기호에 노란색 느낌표가 나타납니다. 웹 사이트를 핑할 수도 있습니다. 시스템 트레이를 감시 할 수없고 핑 (ping)이 번거로운 것 같으면 간단한 스크립트를 사용하여 Windows 10에서 오디오 인터넷 연결 알림을 설정할 수 있습니다.
스포일러 경고:이 기사의 끝 부분에서 아래로 스크롤하여 비디오 자습서를보십시오.
인터넷 연결 경고
이 스크립트는 원래 수퍼 유저가 작성했습니다.Fabby이며 VMMF에서 개선되었습니다. 이 스크립트를 사용하려면 Win32 용 GNU 유틸리티라는 무료 유틸리티를 다운로드해야합니다. 압축을 풀고 다음 폴더에서 Sleep.exe라는 EXE를 찾으십시오.
UnxUtilsusrlocalwbin
이것은 수표 사이에 대기 시간을 추가하는 데 사용됩니다. 이 EXE는 스크립트를 저장 한 폴더와 같은 폴더에 있어야합니다. 다른 것이 필요하지 않으므로 자유롭게 삭제하십시오.
메모장을 열고 다음을 붙여 넣습니다. CMD 확장자로 저장하고 파일을 실행하십시오. sound.vbs 파일은 스크립트로 만들어 지므로 걱정하지 않아도됩니다.

@ECHO OFF :whileNoInternet set "host=8.8.8.8" ::check if internet is working PING -n 1 -w 5000 "%host%" | findstr /r /c:"[0-9] *ms" if %errorlevel% neq 0 ( ::the internet is not working keep cheking until it does echo No internet yet %TIME% GOTO whileNoInternet ) echo we gained internet ::the internet is working play internet ON song @echo off set "file=InternetON_GOGOGO.mp3" ( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration = 0 echo wscript.sleep 100 echo loop echo wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >sound.vbs start /min sound.vbs @ECHO OFF :whileInternet sleep.exe 5s ::check if internet is still working PING -n 1 -w 1000 "%host%" | findstr /r /c:"[0-9] *ms" if %errorlevel% == 0 ( ::the internet is still working keep cheking until it does not echo We have internet %TIME% GOTO whileInternet ) :: detect possible internet glitches (do not trust the first failure) echo internet glitch detected sleep.exe 10s PING -n 1 -w 1000 "%host%" | findstr /r /c:"[0-9] *ms" if %errorlevel% == 0 ( ::the internet is still working keep cheking until it does not echo We have internet %TIME% GOTO whileInternet ) :: if it failed twice in a row most likely internet is down echo we lost internet ::the internet is not working anymore, play internet OFF song @echo off set "file=InternetHasFallen.mp3" ( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration = 0 echo wscript.sleep 100 echo loop echo wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >sound.vbs start /min sound.vbs ::start monitoring if it comes back GOTO whileNoInternet
그게 당신이해야 할 전부입니다. 인터넷 연결 상태를 확인하는 명령 프롬프트 창이 계속 열려 있습니다. 변경되면 꺼짐 소리가 들립니다.
코멘트