1 2 3 4 5 6 7 8 |
cd E:\aleman\barceladaantonescu\dplus foreach($fichero in ls E:\aleman\barceladaantonescu\dplus) { $rtf = New-Object System.Windows.Forms.RichTextBox $rtf.Rtf = [System.IO.File]::ReadAllText($fichero.FullName) $rtf.Text | Out-File $fichero.FullName.replace(".rtf",".txt") } |