FileCopy: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(SF: diferent -> different.) |
(SF: Cleaned page.) |
||
Line 1: | Line 1: | ||
== Description == | |||
This macro makes "CopyFiles" to don't set the error flag when copying files to an inexistant folder. | |||
== How To Use == | |||
<highlight-nsis> | |||
${FileCopy} "filespec_on_destsys" "destination_path" | |||
</highlight-nsis> | |||
== The Script == | == The Script == | ||
<highlight-nsis> | <highlight-nsis> | ||
!macro FileCopy FilePath TargetDir | !macro FileCopy FilePath TargetDir | ||
CreateDirectory ${TargetDir} | |||
CopyFiles ${FilePath} ${TargetDir} | |||
CreateDirectory ${TargetDir} | |||
CopyFiles ${FilePath} ${TargetDir} | |||
!macroend | !macroend | ||
</highlight-nsis> | </highlight-nsis> | ||
Page author: Joelito | Page author: Joelito |
Revision as of 13:09, 17 April 2005
Description
This macro makes "CopyFiles" to don't set the error flag when copying files to an inexistant folder.
How To Use
${FileCopy} "filespec_on_destsys" "destination_path"
The Script
!macro FileCopy FilePath TargetDir CreateDirectory ${TargetDir} CopyFiles ${FilePath} ${TargetDir} !macroend
Page author: Joelito