chitika

Sunday, September 11, 2011

How to rename a file in vb?

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

No comments:

Post a Comment

For other hundreds of computer repair tips, tricks, tweaks, guide, help, please go to


http://website.edusoftmax.com