Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: DOS question

  1. #11
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,785
    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.
    Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”

  2. #12
    Junior Member
    Join Date
    Aug 2003
    Posts
    11
    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.
    Everything Turns Grey!

  3. #13
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,785
    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
    Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •