Renaming files?

Andi03

Active member
Joined
Sep 5, 2003
Messages
43
Hi.

How do I rename files that I have in a dir? I can get the pathname and filename but I dont know how to rename the file without copying the file first. Any ideas?
 
The name part, should that be only the filename with the extension or the whole filepath thing C:\filename.type?
 
If you pass the same directory to both parameters of the method,
then sure, the file is being renamed. Think of it as being moved to
a different place within the folder. This method can also move
files do different directories, of course, but if you pass the same
directory structure to both parameters, the method will simply
rename the file.
 
Back
Top