) endif\r
\r
htget http://%url/%1.zip.%z > %y\r
-\r
rem pause\r
- iff exist %y then\r
+ iff NOT "%@FILESIZE[%y,b]" == "0" then\r
type %y >> %w.zip\r
- endiff\r
- iff "%@FILESIZE[%y,b]" == "65536" then\r
-rem echo o=%o\r
- goto oooo\r
- endiff\r
- iff NOT "%#" == "0" then\r
- shift /1\r
- iff exist %w.zip then\r
- unzip %w.zip\r
- del %w.z*\r
+ iff "%@FILESIZE[%y,b]" == "65536" then\r
+rem echo o=%o\r
+ goto oooo\r
endiff\r
- goto loop\r
+ iff NOT "%#" == "0" then\r
+ shift /1\r
+ iff exist %w.zip then\r
+ unzip %w.zip\r
+ del %w.z*\r
+ endiff\r
+ goto loop\r
+ else\r
+ del %#\r
+ endiff\r
+ else\r
+ del %y\r
+ echo Error null zip file wwww\r
endiff\r
else\r
- echo "Error wwww invalid file name."\r
+ rem del %y.z*\r
+ rem need to add a cleaner wwww\r
+ echo Error wwww invalid file name.\r
endiff\r
rem echo y="%y"\r
rem echo q=%q\r