One of the scariest things for brothers who use computers to work or climb high intensity ranks is loss of network connection. More specifically, the loss of the network connection on the computer does not indicate any message at all. That is why I will bring you a new experience for internet connection on your computer with a piece of music announcement.
Network connection is lost and your favorite song appears, very soulful, but then you will know that your computer has been disconected internet.
Instructions on how to create alarm when the network is lost on the computer
Step 1: Visit the following Web site and download the UnxUtils software in the picture to your computer.
Download link: Here .
Step 2: Extract it right after you download it. Choose Extra to UnxUtils / to create an unzip folder.
Step 3: You continue to access the following path: UnxUtils> usr> local> wbin . Then, Cut file Sleep.exe as shown in the picture (quickly use Ctrl + C key combination ).
Step 4: Create a folder on the desktop by right-clicking an empty area> Select New> New Folder . And you paste (paste) into the newly created folder.
Step 5: Next, right-click an empty area outside the desktop> Select New> Text Documment. To create a new text file folder.
Step 6: Open the newly created text file and paste the following text in it.
@ECHO OFF:whileNoInternetset “host=22.214.171.124”::check if internet is workingPING -n 1 -w 5000 “%host%” | findstr /r /c:”[0-9] *ms”if %errorlevel% neq 0 (::the internet is not working keep cheking until it doesecho No internet yet %TIME%GOTO whileNoInternet)echo we gained internet::the internet is working play internet ON song@echo offset “file=InternetON_GOGOGO.mp3″( echo Set Sound = CreateObject(“WMPlayer.OCX.7″^)echo Sound.URL = “%file%”echo Sound.Controls.playecho do while Sound.currentmedia.duration = 0echo wscript.sleep 100echo loopecho wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >sound.vbsstart /min sound.vbs@ECHO OFF:whileInternetsleep.exe 5s::check if internet is still workingPING -n 1 -w 1000 “%host%” | findstr /r /c:”[0-9] *ms”if %errorlevel% == 0 (::the internet is still working keep cheking until it does notecho We have internet %TIME%GOTO whileInternet):: detect possible internet glitches (do not trust the first failure)echo internet glitch detectedsleep.exe 10sPING -n 1 -w 1000 “%host%” | findstr /r /c:”[0-9] *ms”if %errorlevel% == 0 (::the internet is still working keep cheking until it does notecho We have internet %TIME%GOTO whileInternet):: if it failed twice in a row most likely internet is downecho we lost internet::the internet is not working anymore, play internet OFF song@echo offset “file=InternetHasFallen.mp3″( echo Set Sound = CreateObject(“WMPlayer.OCX.7″^)echo Sound.URL = “%file%”echo Sound.Controls.playecho do while Sound.currentmedia.duration = 0echo wscript.sleep 100echo loopecho wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >sound.vbsstart /min sound.vbs::start monitoring if it comes backGOTO whileNoInternet
Step 7: You choose to go to File> Save As as in the image. Note: Remember to Save to the same folder as the Sleep.exe file.
- Under File Names: You name any file with .cmd extension. For example, 12345.cmd.
- In the Save as Type: You choose All Files. (*. *).
Step 8: This is the time for you to choose your favorite music. Please choose carefully because after this alarm your favorite music will become a scary sound.
Then, you change the name to InternetHasFallen and copy to the same folder with the Sleep.exe file and the .cmd file earlier.
Step 9: Open the .cmd file earlier to trigger the alarm. You just let the software run like that. Every time the device disconnects, the device will notify you.
So I gave you a tip to create extremely interesting disconnection alarm on the computer. If you find the article useful, please give me a like and a share. Thank you very much for viewing the article.