Mi hai fatto venire in mente una cosa da aggiungere al mio programma, per ora ho abbozzato questo:
codice:
Dim testo_vecchio As String = TextBox_vecchio_testo.Text
Dim testo_nuovo As String = TextBox_nuovo_testo.Text
Dim testo_definitivo As String = ""
Dim cartella As New IO.DirectoryInfo(percorso)
Dim file_ As IO.FileInfo() = cartella.GetFiles
Dim nome_file As IO.FileInfo
For Each nome_file In file_
If nome_file.ToString.Contains(testo_vecchio) = True Then
testo_definitivo = nome_file.ToString.Replace(testo_vecchio, testo_nuovo)
MsgBox("Vecchio: " & nome_file.ToString & vbCrLf & _
"Nuovo: " & testo_definitivo)
End If
Next
Vedi tu se ti può servire.
ciao