-
the /F indicates the vars will be taken from a file which we name in (results.txt).
'for' by default uses a space to delimit items in each line. tokens=3 means we'll be using the third item. (it actually places them in an array).
if we had said "tokens=5" %X
(Reply from 66.218.71.198: bytes=32 time=70ms TTL=243 )
%X would equal "time=70ms"
enter "for /?" at a command prompt for an in depth help file. if youd rather ask, ask away! BTW this does not apply to 9x systems only nt based. the for command in 9x is very weak.
-
NT based only? Oh...I was wondering why the "/f" and "tokens" weren't working...lol
Is there any other way for you to do this? I apologize if I am being bothersome.
-
Sorry, i should have asked first.
i dont have any 9x boxen hooked up here so help me out.
Now assuming you have a 9x box, type this into a batch file
(i named mine bt1.bat)
@echo %1
@echo %2
@echo %3
@echo %4
@echo %5
@echo %6
now enter this line at the prompt. making sure your in the same dir as the bat file:
bt1.bat Reply from 66.218.71.198: bytes=32 time=70ms TTL=243
let me know if you get this:
Reply
from
66.218.71.198:
bytes
32
time
if you do we'll work on getting what you want