How do you rename a file - Without opening and save as
Visual Basic
3
Posts
2
Posters
0
Views
1
Watching
-
Hi How do you rename a file in vb.net? (I don't ewant to open the file and Save it as osmething else - just rename)
-
Hi How do you rename a file in vb.net? (I don't ewant to open the file and Save it as osmething else - just rename)
-
Try this:
Imports System.IO
File.Move(oldfilename, newfilename)
NOTE you need to include the path in the filenames above. Hope that helps. Ben
Works perfectly - Thanks!!!