Hi

How can i rename (not copy to another dir, delete and copy back with antoher
name) a file in a directory.

This shoulb be easy but i can't handle!

Thanks for every help!

Nijazi Halimaji

Re: Rename files by Rick

Rick
Thu Apr 29 04:44:16 CDT 2004

> How can i rename (not copy to another dir, delete and copy back with
antoher
> name) a file in a directory.
>
> This shoulb be easy but i can't handle!
>
> Thanks for every help!

Use the Name Statement...

Dim OldName, NewName
OldName = "c:\temp\OldFileName.txt"
NewName ="c:\temp\TheNewFileName.txt"
Name OldName As NewName

Rick - MVP