Renames a file.
Parameters
- cSource
A file name. The name should be a fully-qualified path to prevent unexpected results.
- cTarget
The destination file name.
- cTitle (optional)
Title of the progress dialog.
If you pass this parameter, the FOF_SIMPLEPROGRESS flag is automatically set since one cannot specify a title without setting this flag.
Return Value
1 if the file was renamed successfull, 0 if the operation was aborted, otherwise the errorcode from the SHFileOperation API.
Remarks
You cannot use this function to rename multiple files with a single function call.
Use SHMoveFiles instead.
See Also
Reference
SHCopyFiles
SHDeleteFiles
SHMoveFiles
SHSpecialFolder