CodeItBetter Programming Another VB Programming Blog

How to Rename the files

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
'File/Folder Handling - How to Rename the files
Sub FileOperations()
    ' All file operations should be protected against errors.
    ' None of these functions works on open files.
    On Error Resume Next
    ' Rename a file--note that you must specify the path in the target,
    ' otherwise the file will be moved to the current directory.
    Name "c:\vb6\TempData.tmp" As "c:\vb6\TempData.$$$"
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.