PDA

View Full Version : File rename


cuc
25th July 2003, 08:43
What is the method to rename a file ?

Sunjammer
25th July 2003, 08:47
Rename command, docs here:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.6

cuc
25th July 2003, 08:58
Thanks !
Sorry to ask, I haven't see it!

Afrow UK
25th July 2003, 10:24
Rename is also useful for moving the file too.

E.g.
CreateDirectory "$EXEDIR\backup"
Rename "$EXEDIR\installer.exe" "$EXEDIR\backup\oldinstaller.exe"

-Stu