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