Windows 8.1 redirecting .bat output to a file

Discussion in 'Programming and Scripting' started by g2c, Mar 5, 2015.

  1. g2c

    g2c Member

    Joined:
    Jun 28, 2014
    Messages:
    33
    Likes Received:
    1
    Hello, I would like to save for further processing all the output of a .bat file. This .bat calls wget and if i call the .bat with

    >test.bat > test.txt

    the .txt file is filled with whatever dos prints to the screen but NOT the output from wget

    Thanks in advance for your help
     
  2. patcooke

    patcooke Microsoft MVP
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    May 16, 2010
    Messages:
    5,456
    Likes Received:
    268
    What are you trying to save from wget?
     
  3. strollin

    strollin Senior Member

    Joined:
    Jul 21, 2013
    Messages:
    286
    Likes Received:
    36
  4. g2c

    g2c Member

    Joined:
    Jun 28, 2014
    Messages:
    33
    Likes Received:
    1
    Thanks for your concern,
    I have a misbehavior when accessing a server on an android phone as if the android discards ARPs. I am trying to analyse a long run with random inter-requests idles so as to find a pattern in the failures
     
  5. g2c

    g2c Member

    Joined:
    Jun 28, 2014
    Messages:
    33
    Likes Received:
    1
    if i ask wget to output to a file, i'll end up with two files: the batch output with some variables such as the loop counter on one hand and the wget output on the other.
     

Share This Page

Loading...