1 2 3 4 | $file = "C:\Users\juan\Desktop\dplus\dplus_1.rtf" $rtf = New-Object System.Windows.Forms.RichTextBox $rtf.Rtf = [System.IO.File]::ReadAllText($file) $rtf.Text | Out-File $file.replace(".rtf",".txt") |
1 2 3 4 | $file = "C:\Users\juan\Desktop\dplus\dplus_1.rtf" $rtf = New-Object System.Windows.Forms.RichTextBox $rtf.Rtf = [System.IO.File]::ReadAllText($file) $rtf.Text | Out-File $file.replace(".rtf",".txt") |