Skip to main content

CopyLocalFile

Structure

CopyLocalFile(sFileNameFrom, sFileNameTo: String): Char

Type

Function

Description

This function copies the file at sFileNameFrom to the location at sFileNameTo. If the file copy is successful then "1" is returned, otherwise "0"

Parameters

ParameterTypeDescription
sFileNameFromStringFile to copy
sFileNameToStringCopy to here

Return value

Char - '1' = True, '0' = False

Example

if CopyLocalFile("C:\Temp\Myfile.txt", "C:\Temp2\MyfileCopied.txt") = "1" then
ShowMessage("File copy ok")
End If