so i made this command
html names are like this "page@offset=1.html" and "page@offset=2.html" the number only change
Code: Select all
@echo off
cls
set "filename=page@offset="
set "location=D:\data"
For /L %%a (1,1,5) Do (
IF not exist "%location%\%filename%%%a.html" ( wget command here to download )
)
I have no idea why it refuse to work, i used setlocal and removed it and same output
page@offset=%a.html
page@offset=%a.html
page@offset=%a.html
page@offset=%a.html
page@offset=%a.html
why ???
