start.bat content
start / b C:\ Users\ ll\ Desktop\ main.exe >.\ log.txt
Files are written together in log.txt:
I think the expected result is
2018-04-25 17:08:26
start.bat content
start / b C:\ Users\ ll\ Desktop\ main.exe >.\ log.txt
Files are written together in log.txt:
I think the expected result is
2018-04-25 17:08:26
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.
Previous: How to develop a MIDI processing class with CPP?
Next: How to adjust the prefixCls value in component js in antd