Well, I have this program that I run with the help of batch. Its a PHP script that is ran by an EXE file.
How can I have it that while the program is running, the output is automatically sent to a file, say log.txt, and have the output simultaneously shown on screen?
I tried something like program.exe >> log.txt, but that didnt show output on the screen.
If you want to do it only with windows commands may be you should try something like this:
there is no tail equivalent in windows commands.