change a file name in vb.net

  • Thread starter Thread starter xke
  • Start date Start date
X

xke

Other than copying the file under a different name and delete the
initial file, is there any other way to change a file name in vb.net ?

Thanks,
xk
 
Other than copying the file under a different name and delete the
initial file, is there any other way to change a file name in vb.net ?

Thanks,
xk


System.IO.File.Move (sourcePath, destinationPath)
 
xke said:
Other than copying the file under a different name and delete the
initial file, is there any other way to change a file name in vb.net ?

In addition to the other reply: You can use VB's 'Rename' function or
'My.Computer.FileSystem.RenameFile'.
 
Back
Top