Skip to content
⌘ NSIS Forum Archive

Copy Files to Directory and Overwrite if theres any Collisions

2 posts

gretty#

Copy Files to Directory and Overwrite if theres any Collisions

Hello

I am attempting to move files from directory A to directory B. When I move the files into directory B, if there are any collisions then I want the files from A to overwrite the collisions in B.

Will my following code do this?

SetOverwrite ifnewer
CopyFiles \SILENT "Directories/Directory_A/" "Directories/Directory_B"

Note: I am aware of the function MoveFileFolder but I am experiencing buggy behaviour where the files are not being moved when the function is called.
jpderuiter#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Please Note:
"Fully-qualified path names should always be used with CopyFiles. Using relative paths will have unpredictable results."