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") }
The post Convertir varios ficheros RTF en TXT con PowerShell appeared first on Scripting and security.