Search

CopyFile

Last Updated: Dec 28, 2022

Articles

Use this function to copy the source file to the given destination path.

Syntax

CopyFile (source_file, destination)

Parameters

Input Parameter Name Description
source_file Path of the file to be copied
destination Path where the file should be copied to

Returns

Return value Description
Destination Path Returns the path of the copied file

Sample

CopyFile (C:\Invoice.pdf, E:\Invoices)

  • Copies the file Invoice.pdf from the path C:\Invoice.pdf to the path E:\Invoices.
    Returns destination of copied file as E:\Invoices\Invoice.pdf.

To view all the File functions, click here.

Did you find what you were looking for?