Search

Copy Folder

Last Updated: Mar 15, 2021

Articles

Use this function to copy the source folder to the given destination path. If the source folder does not exist, an error is raised alerting “The source folder does not exist”.

Syntax

Copy folder (source_folder, destination_folder)

Parameters

Input Parameter Name Description
source_folder Path of the folder to be copied
destination_folder Path where the folder should be copied to

Returns

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

Sample

Copy folder (C:\Travel_Invoices, E:\Invoices)

  • Copies the folder in the path C:\Travel_Invoices to the path E:\Invoices.
    Returns destination of copied file as E:\Invoices\Travel_Invoices.

To view all the File functions, click here.

Did you find what you were looking for?