FileCopy: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
mNo edit summary |
|||
Line 2: | Line 2: | ||
== Description == | == Description == | ||
This macro | This macro causes "CopyFiles" to not set the error flag when copying files to an non-existant folder by first attempting to create the destination folder. | ||
== How To Use == | == How To Use == |
Revision as of 22:09, 20 January 2009
Author: Joel (talk, contrib) |
Description
This macro causes "CopyFiles" to not set the error flag when copying files to an non-existant folder by first attempting to create the destination folder.
How To Use
${FileCopy} `filespec_on_destsys` `destination_path`
The Script
!define FileCopy `!insertmacro FileCopy` !macro FileCopy FilePath TargetDir CreateDirectory `${TargetDir}` CopyFiles `${FilePath}` `${TargetDir}` !macroend