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

FileSystemObject : MoveFolder Method

Description: 

This function moves a Folder from one location to another.

Format : 

objectOfFileSystemObject. MoveFolder (source, destination );

Arguments: 
  • objectOfFileSystemObject

As the names says, it’s a FileSystemObject.

    • source
      • Mandatory
      • Type:     String
      • Path of a folder to be moved.

  • destination
    • Mandatory
    • Type:     String
    • Path where folder to be moved.

 

Function FnMoveFolder(strSourcePath,strDestinationPath)

      Set fso = CreateObject("Scripting.FileSystemObject")

      Set objFolder = fso. MoveFolder(strSourcePath, strDestinationPath)

End Function

Call FnMoveFolder (“c:\New Folder”,”d:\New Folder”)

 

You may also like...

Leave a Reply

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

%d bloggers like this: