rem echo y=%y\r
if %o lt 100 (\r
if %o lt 10 (\r
- set q=00%o\r
+ set z=00%o\r
) else (\r
- set q=0%o\r
+ set z=0%o\r
) endif\r
) else if %o gt 99 (\r
- set q=%o\r
+ set z=%o\r
) endif\r
\r
- htget http://%url/%1.zip.%q > %y\r
+ htget http://%url/%1.zip.%z > %y\r
\r
rem pause\r
iff exist %y then\r
endiff\r
goto loop\r
endiff\r
+ else\r
+ echo "Error wwww invalid file name."\r
endiff\r
rem echo y="%y"\r
rem echo q=%q\r