Advertisement
julieharu

wget loop

Dec 11th, 2023
1,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Winbatch 0.31 KB | Source Code | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3.  
  4. for /l %%i in (1,1,905) do (
  5.   set "filename=%%i"
  6.  
  7.   if %%i lss 10 (
  8.     set "filename=00!filename!"
  9.   ) else if %%i lss 100 (
  10.     set "filename=0!filename!"
  11.   )
  12.  
  13.   wget "https://www.serebii.net/Shiny/SWSH/!filename!.png" -P "SWSH Shiny"
  14. )
  15.  
  16. endlocal
  17.  
  18. PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement