Search code examples
windowscmdlogfiles

C:/Windows log files write to C:/mylogs.txt


I have a little question for you :) I want to write log files from C:/Windows to C:/mylogs.txt with ms-dos commands. But I don't know any ms-dos commands. How can I do this. Please help me !


Solution

  • If you only pretend to copy the content of Windows logs that are stored in the root folder of C:\Windows, then you could use the Copy command as follows:

    Copy /B "%WinDir%\*.log" "C:\mylogs.txt"