Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Contact us
Hide Buttons

FileSystemObject : CopyFolder Method

Description: 

This func­tion copies a Folder from one loca­tion to another.

Format : 

objectOf­FileSys­te­mOb­ject. Copy­Folder (source, des­ti­na­tion[, overwrite] );

Arguments: 
        • objectOf­FileSys­te­mOb­ject
          • As the names says, it’s a FileSystemObject.

      • source
        • Manda­tory
        • Type:     String
        • Path of a folder to be copied.
      • des­ti­na­tion
        • Manda­tory
        • Type:     String
        • Path where folder to be copied.
      • over­write
        • Optional
        • Type: Boolean ( True(default): if exist­ing folder to be over­writ­ten, False: if not overwritten)

 

Function FnCopyFolder(strSourcePath,strDestinationPath)       
   Set fso = CreateObject("Scripting.FileSystemObject")      
  Set objFolder = fso. CopyFolder(strSourcePath, strDestinationPath) 
End Function

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: