]> 4ch.mooo.com Git - 16.git/commitdiff
wwww 16.exe polished wwww and x4get.bat updated to handle more than 10 parts... needs...
authorsparky4 <sparky4@cock.li>
Tue, 19 Jul 2016 14:23:28 +0000 (09:23 -0500)
committersparky4 <sparky4@cock.li>
Tue, 19 Jul 2016 14:23:28 +0000 (09:23 -0500)
x4get.bat

index eacb859b8c858abed40c0c25f89dbc1041e39ca8..1eb135a2ff752f63f0899eb484d2a0d5c72eef82 100755 (executable)
--- a/x4get.bat
+++ b/x4get.bat
@@ -26,25 +26,31 @@ rem  echo y=%y
        ) 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