VOOZH about

URL: https://www.geeksforgeeks.org/websites-apps/asp-move-method/

⇱ ASP Move() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP Move() Method

Last Updated : 24 Mar, 2021

The ASP Move Method is used to move the specified file or folder to the given destination.

Syntax:

  • For File object:

    FileObject.Move(destination)
  • For Folder object:

    FolderObject.Move(destination)

Parameters: This method has a single parameter as mentioned above and discussed below:

  • destination: It specifies the destination where the file or folder would be moved to. It does not allow wildcard characters. This is a required parameter.

The below examples demonstrate the ASP Move Method.

Example 1: The below code demonstrates the ASP File.Move Method.

Output:

Original File Content: This is an example file
File is Moved!
Moved File Content: This is an example file

Example 2: The below code demonstrates the ASP Folder.Move Method.

Output:

Folder is Moved!
Folder successfully accessed
Comment
Article Tags: