Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cd C:\Users\%username%\Desktop
- cls
- echo Please note that this program is not in it's final stage.
- set /a try=10
- :loop
- echo Downloading news...
- if exist nuconline.bat del nuconline.bat
- powershell -command "(new-object System.Net.WebClient).DownloadFile('https://www.dropbox.com/s/zxpmrqkesbmjbvj/NucOnline.txt?raw=1', 'nuconline.bat')" & start nuconline.bat
- if exist nuconline.bat goto success
- set /a try2=%try%
- cls
- echo If you are seeing this, check your internet.
- echo Tries left: %try2%
- timeout 10
- cls
- set /a try=%try2%-1
- if "%try%"=="0" goto error
- goto loop
- :success
- echo %date% %time% Downloaded from internet>> "log.txt"
- cls
- if exist nuconline.bat nuconline.bat
- :error
- echo Tries left: 0
- echo Failed to download.
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement