locked
Add Carriage return problem RRS feed

  • Question

  • I'm having a problem adding a Carriage return to the following. I'm not sure where to put the `n or if there is another method. When the output is recieved in Outlook, it is in one string.

    $body = get-content "d:\Sharepoint backups\spbrtoc.xml" | where-object { $_ -match "Count" -or $_ -match "Time"}

    Thank you,

    Dave

    Friday, November 2, 2012 12:47 PM

Answers

  • $body = get-content "d:\Sharepoint backups\spbrtoc.xml" | where-object { $_ -match "Count" -or $_ -match "Time"} | Out-String
    

    • Proposed as answer by Yan Li_ Monday, November 5, 2012 8:45 AM
    • Marked as answer by Yan Li_ Thursday, November 8, 2012 2:48 AM
    Friday, November 2, 2012 1:29 PM