Windows 8.1 redirecting .bat output to a file

#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
 


patcooke

Microsoft MVP
Staff member
Premium Supporter
Microsoft MVP
#2
What are you trying to save from wget?
 


#4
What are you trying to save from wget?
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
That's because not all commands send their output to Standard Output.
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.
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.