The bat script executes the exe file and specifies how to wrap the output file?

start.bat content
start / b C:\ Users\ ll\ Desktop\ main.exe >.\ log.txt

Files are written together in log.txt:

clipboard.png

I think the expected result is
2018-04-25 17:08:26

Mar.05,2021

notepad does not recognize \ n only \ r\ n , either you change the editor to check, or you change the program to change the line breaks to \ r\ n , which has nothing to do with bat


this is something controlled by exe . The outside cannot do it unless you press the fixed length after exe stops output.

Menu