My.Computer.Filesystem.RenameFile
or
' How to move / rename a file.
Private Sub button6_Click(sender As Object, e As System.EventArgs)
Dim fi As New FileInfo("myImage.gif")
fi.MoveTo("myImage2.gif")
End Sub 'button6_Click
"John" <in**@nospam.infovis.co.ukwrote in message
news:u9**************@TK2MSFTNGP05.phx.gbl...
Hi
How can I rename a file on disk in vb,net? Basically I am looking for
vb.net equivalent of the vba Name command.
Thanks
Regards