FileCopy Function

 

FileCopy( sourcefile, destinationfile)

 

Copies a file from source to destination.

 

The sourcefile and destinationfile parameters must be valid string expressions. sourcefile  is the file name of the file to copy, destinationfile  is the file name to be copied to.

         

              Example:

 

Dim SourceFile, DestinationFile

SourceFile = "SRCFILE"   ' Define source file name.

DestinationFile = "DESTFILE"   ' Define target file name.

FileCopy SourceFile, DestinationFile   ' Copy source to target.