The
filerename function changes the name of a file or group of files on the disk. The argument
old_file_name is a string expression or string
List giving the existing file name(s). The argument
new_file_name is a string expression giving the new file name or destination folder name. The arguments can also be file handlers declared in a
File statement.
You can use the wildcard characters "*" and "?" to specify a group of files to rename as the old_file_name. If using wildcard characters, the new_file_name must be the name of a folder.
The function returns the number of files renamed. If there was an error renaming files, the function returns
default.