Search

Copy Folder

Last Updated: Dec 3, 2020

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 that the source folder does not exist.

Syntax

Copy Folder (source_folder, destination)

Parameters

Input Parameter Name Description
source_folder Path of the folder to be copied
destination 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’. The destination of the copied file is returned as ‘E:\Invoices\Travel_Invoices’.

To view all the File functions, click here.

Did you find what you were looking for?