| Description | 
FileCopy (Magic xpa 4.x)
| 
 Copies a file. 
 |  | 
 Syntax: 
 | 
 FileCopy(origin,target) 
 |  | 
 Parameters: 
 | 
 origin: An Alpha string that represents the file specification of the existing file to be copied. 
target: An Alpha string that represents the name of the new file. 
 |  | 
 Returns: 
 | 
 TRUE if successful 
 |  | 
 Example: 
 | 
 FileCopy('MAGIC.FIL','MAGIC.SAV') - Copies MAGIC.FIL to a new file called MAGIC.SAV. 
 |  | 
 Note: 
 | 
 In each parameter the string may include a path. If the path is omitted, Magic xpa assumes the current directory. 
 |  | 
 See also: 
 | 
 FileDelete, FileExist, FileInfo, FileRename 
How Do I Copy a Disk File? 
The Online and Rich Client Samples projects (program EL16 and REL16) 
 |  
   |  
  | 
|---|