Move Method

Moves a specified file or folder from one location to another.

object.Move( destination ); 

Arguments

  • object
    Required. Always the name of a File or Folder object.

  • destination
    Required. Destination where the file or folder is to be moved. Wildcard characters are not allowed.

Remarks

The results of the Move method on a File or Folder are identical to operations performed using FileSystemObject.MoveFile or FileSystemObject.MoveFolder. You should note, however, that the alternative methods are capable of moving multiple files or folders.

Applies To:

File Object| Folder Object

See Also

Reference

Copy Method (FileSystemObject)

Delete Method

MoveFile Method

MoveFolder Method

OpenAsTextStream Method