• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

line breaks in batch-created text file?

imported_stev

Senior member
I poked around online to make a batch script to defrag both of my hard drives every week. This is what I came up with:

cd C:\windows\system32
defrag C: >C:\defrag.log 2>&1
defrag D: >>C:\defrag.log 2>&1
date /t >>C:\defrag.log
time /t >>C:\defrag.log

It outputs the analysis and defragmentation reports for both drives and then the last two lines output the date and time of completion. My question is simple and a little anal. How do I add a line break or two between the defrag output and the date/time?
 
Thank you for your excellent Googling skills. I spent quite a bit of time searching, but I kept running into lines of "echo" code in which the symbols used weren't explained.
 
Back
Top