Click to See Complete Forum and Search --> : When writing a .bat file, how to output the result to a file?


erxuan
May 8th, 2003, 12:15 AM
Hi, I'm writing a batch file (.bat) which runs under windows...Since I only have a bunch of .exe files and I need to do test on them.
There are too much output on the screen and I want to store them in a .txt file. How can I do this in a .bat file?
I checked some tutorial on writing .bat file, but I did not find the answer...is this doable?

Thanks a lot?

AdaraCD
May 8th, 2003, 12:25 AM
you can redirect the output to txt file by adding
">> sometxtfile.txt" at the end of each command.

Hexalon
May 9th, 2003, 04:42 PM
in the batch file just issue the command "somethin.exe < input > output.txt"