Skip to content
⌘ NSIS Forum Archive

Does "Rename" overwrite an existing file?

5 posts

rsegal#

Does "Rename" overwrite an existing file?

Will using "Rename" overwrite an existing destination file? From what I can tell it will not overwrite a file that already exists. Additionally, does "SetOverwrite" affect using "Rename" at all?
Afrow UK#
Rename will not overwrite existing files.
You will need to delete the existing file first, and then rename.

Not sure about if setoverwrite affects the rename command.

-Stu