Let me break it down.
I play a game that uses a batch code to open the game.
The code is;
Code: Select all
title AssaultCube
cls
bin_win32\ac_client.exe --init %1 %2 %3 %4 %5
pause
Simple: This batch file opens the Game/Application.
When you play the game it writes things likes kills/suicides etc to the batch file.
And when you close the game it looks like this...

I want ^^ That ^^ Text to be written to a seperate .txt file.
I have tried things like " >> ac_log.txt" But theres no way i'v found to write ALL the text to a different file.
Is there anyway to do this? Any code i can just slip in?
EDIT:
I have written this little thing to give an option to do so..
Code: Select all
bin_win32\ac_client.exe --init %1 %2 %3 %4 %5
echo =====================================
echo 1 - Save this text
echo 2 - Exit
set /p input=
if %input%==1 goto savetext
if %input%==2 goto exit
:savetext
(CODE HERE TO WRITE TEXT TO .TXT FILE)