]> 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:03:45 +0000 (09:03 -0500)
committersparky4 <sparky4@cock.li>
Tue, 19 Jul 2016 14:03:45 +0000 (09:03 -0500)
x4get.bat

index 5ad2dd3d960a7b6d5a26affa064ff231e5ddf969..eacb859b8c858abed40c0c25f89dbc1041e39ca8 100755 (executable)
--- a/x4get.bat
+++ b/x4get.bat
@@ -17,15 +17,15 @@ rem for %# in (1,1,%*) do (
 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
@@ -43,6 +43,8 @@ rem           echo o=%o
                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