This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define the sleep method and relevant paths. | |
function sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} | |
const sleepTime = 600; | |
const count = 0; | |
// Update playlistName to desired playlist | |
const playlistName = "#####"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO off | |
ECHO Getting Default Gateway and adding to hosts.conf | |
for /F "tokens=13" %%x in ('"ipconfig /renew * > nul & ipconfig | findstr "Default Gateway" | findstr "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*""') do ( | |
@echo %%x local.priceline.com >> C:\Windows\System32\drivers\etc\hosts | |
echo %%x local.priceline.com | |
) | |
PAUSE |