|
Answer» im about to MAKE a proxy pinger i want it to read from a text document and ping each line:
echo off :q for /f "tokens=* delims=" %%i in (proxy.txt) do %%i ping %q% -n 3 goto q
im sure this doesnt work but i want some thing like it, that can read and ping proxys from a file, the proxys have there port numbers on so its not possible to ping an ipnumber with proxy following, i will giva an example:
proxy.txt CONTAINS following: 65.112.187.218:3128 64.76.58.132:3128 200.31.74.242:8080 200.96.157.66:3128 203.160.1.146:553 221.234.242.3:8080 200.167.148.68:8080 67.207.145.238:3128 12.149.212.1:80 200.219.152.6:8080 81.140.160.10:3128 83.229.21.4:8080 220.31.156.91:8080
and i want q.bat to ping the proxy.txt list example following: ping 65.112.187.218 echo sent=3 recived=? speed=? ping 64.76.58.132 echo sent=3 recived=? speed=? ping 200.31.74.242 echo sent=3 recived=? speed=? and so on following from the list...
its pretty hard to explain but i hope you will understand any one have a solution for this?The LOOP should look like this
Code: [Select]echo off for /f "tokens=1,2,3,4 delims=." %%a in (proxy.txt) do ( ping %%a.%%b.%%c.%%d -n 3 )
Quote from: Dias de verano on March 21, 2008, 10:00:18 AM The loop should look like this
Code: [Select]echo off for /f "tokens=1,2,3,4 delims=." %%a in (proxy.txt) do ( ping %%a.%%b.%%c.%%d -n 3 )
thank you but the port numbers are still following... the port numbers have to be TAKEN off before able to be pinged.Sorry I LEFT out a colon in the delims section
Code: [Select]echo off for /f "tokens=1,2,3,4 delims=.:" %%a in (proxy.txt) do ( ping %%a.%%b.%%c.%%d -n 3 )
|