Advertisement
2nuc4u

getnews

Oct 9th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.75 KB | None | 0 0
  1. @echo off
  2. cd C:\Users\%username%\Desktop
  3. cls
  4. echo Please note that this program is not in it's final stage.
  5. set /a try=10
  6. :loop
  7. echo Downloading news...
  8. if exist nuconline.bat del nuconline.bat
  9. powershell -command "(new-object System.Net.WebClient).DownloadFile('https://www.dropbox.com/s/zxpmrqkesbmjbvj/NucOnline.txt?raw=1', 'nuconline.bat')" & start nuconline.bat
  10. if exist nuconline.bat goto success
  11. set /a try2=%try%
  12. cls
  13. echo If you are seeing this, check your internet.
  14. echo Tries left: %try2%
  15. timeout 10
  16. cls
  17. set /a try=%try2%-1
  18. if "%try%"=="0" goto error
  19. goto loop
  20.  
  21. :success
  22. echo %date% %time% Downloaded from internet>> "log.txt"
  23. cls
  24. if exist nuconline.bat nuconline.bat
  25.  
  26. :error
  27. echo Tries left: 0
  28. echo Failed to download.
  29. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement