Talk:Reference/Rename: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "If you are moving directory, make sure that target directry doesn't have file with the same name: Rename "$InstDir\MyDir" ""$InstDir\MyDir_Backup" if there is file: C:\temp\...") |
No edit summary |
||
Line 1: | Line 1: | ||
If you are moving directory, make sure that target directry doesn't have file with the same name: | If you are moving directory, make sure that target directry doesn't have file with the same name: | ||
Rename "$InstDir\ | Rename "$InstDir\alpha" ""$InstDir\alpha_Backup" | ||
if there is file: C:\temp\alpha, will lead to: | if there is file: C:\temp\alpha, will lead to: | ||
Rename failed: C:\temp\alpha->C:\temp\alpha_Backup | Rename failed: C:\temp\alpha->C:\temp\alpha_Backup | ||
with no additional error information. | with no additional error information. |
Latest revision as of 13:02, 8 September 2022
If you are moving directory, make sure that target directry doesn't have file with the same name:
Rename "$InstDir\alpha" ""$InstDir\alpha_Backup"
if there is file: C:\temp\alpha, will lead to:
Rename failed: C:\temp\alpha->C:\temp\alpha_Backup
with no additional error information.