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: 2
| Parameter | Type | Description
| sFileNameFrom | String | File to copysFileNameTo | String | Copy 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 |