wwww
修訂 | 291ffe526f0aad4ffe8b6570a9d24636eae40205 (tree) |
---|---|
時間 | 2016-07-19 22:57:37 |
作者 | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
wwww 16.exe polished wwww and x4get.bat updated to handle more than 10 parts... needs through testingls -lat wwww
@@ -1,5 +1,7 @@ | ||
1 | 1 | @echo off |
2 | -del %* | |
2 | +iff exist %* then | |
3 | + del %* | |
4 | +endiff | |
3 | 5 | setlocal |
4 | 6 | set url="4ch.mooo.com/16" |
5 | 7 | rem for %@eval[%#+1] in (%*) do ( |
@@ -13,17 +15,32 @@ rem for %# in (1,1,%*) do ( | ||
13 | 15 | set /a o=%o+1 |
14 | 16 | set y=%w.z%o |
15 | 17 | rem echo y=%y |
16 | - htget http://%url/%1.zip.00%o > %y | |
18 | + if %o lt 100 ( | |
19 | + if %o lt 10 ( | |
20 | + set q=00%o | |
21 | + ) else ( | |
22 | + set q=0%o | |
23 | + ) endif | |
24 | + ) else if %o gt 99 ( | |
25 | + set q=%o | |
26 | + ) endif | |
27 | + | |
28 | + htget http://%url/%1.zip.%q > %y | |
29 | + | |
17 | 30 | rem pause |
18 | - type %y >> %w.zip | |
31 | + iff exist %y then | |
32 | + type %y >> %w.zip | |
33 | + endiff | |
19 | 34 | iff "%@FILESIZE[%y,b]" == "65536" then |
20 | 35 | rem echo o=%o |
21 | 36 | goto oooo |
22 | 37 | endiff |
23 | 38 | iff NOT "%#" == "0" then |
24 | 39 | shift /1 |
25 | - unzip %w.zip | |
26 | - del %w.z* | |
40 | + iff exist %w.zip then | |
41 | + unzip %w.zip | |
42 | + del %w.z* | |
43 | + endiff | |
27 | 44 | goto loop |
28 | 45 | endiff |
29 | 46 | endiff |