This is a Powershell script to dump console buffer as html to file.
ConsoleBufferToHtml.ps1 [-FilePath] [[-Encoding] ] [[-Last] ] [-SkipLast]
This Powershell script will iterate over the current console buffer and output it as html preserving colors.
Specifies the path to the output file.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
Specifies the type of character encoding used in the file. Valid values are "Unicode", "UTF7", "UTF8", "UTF32", "ASCII", "BigEndianUnicode"
Required? false
Position? 2
Default value UTF8
Accept pipeline input? false
Accept wildcard characters? false
Specifies the rows to output from the end of the buffer
Required? false
Position? 3
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
Skips last buffer row in output
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
ConsoleBufferToHtml.ps1 -FilePath C:\temp\cakebuildlog.htm -Last 50
Will output cakebuildlog.htm