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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35324-2bf58.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35324-2bf58.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?