vb: how to rename file?
Website Design
Website Promotion
Graphic Design
Programming
Free Software
Computer Tips
Discount Stores
|
This site provides users with the information about vb, visual basic, vb6, rename file, how to rename file, and more.
If you think that this site is helpful, please recommend your friends to visit our site.
How to rename a file?
The following is the code to rename a file:
1. Save data to registry
Dim OldName, NewName As String
'Rename file.
OldName = "c:\old.txt": NewName = "c:\new.txt" ' Define file names.
Name OldName As NewName
'Move and rename file.
OldName = "c:\test\old.txt": NewName = "c:\test\new.txt"
Name OldName As NewName
|