ASP Move() Method Last Updated : 24 Mar, 2021 Comments Improve Suggest changes Like Article Like Report 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. ASP <% dim fs,f,ts set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the file to be copied set f=fs.GetFile("d:\GFG.txt") 'Reading the contents of the file set ts=f.OpenAsTextStream(1) Response.Write("Original File Content: " & ts.ReadAll) ts.Close 'Moving the file to the given path f.Move("d:\newfolder\GFG.txt") Response.write("<br>" & "File is Moved!" & "<br>") 'Getting the moved file set f=fs.GetFile("d:\newfolder\GFG.txt") 'Reading the contents of the moved file set ts=f.OpenAsTextStream(1) Response.Write("Moved File Content: " & ts.ReadAll) ts.Close set f=nothing set fs=nothing %> 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. ASP <% dim fs,f,ts set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the folder to be copied set f=fs.GetFolder("d:\GFG") 'Moving the folder to the given path f.Move("d:\newfolder\GFG") Response.write("Folder is Moved!") 'Getting the moved folder set f=fs.GetFolder("d:\newfolder\GFG") Response.write("<br>" & "Folder successfully accessed") set f=nothing set fs=nothing %> Output: Folder is Moved! Folder successfully accessed Comment More infoAdvertise with us Next Article ASP Move() Method M manaschhabra2 Follow Improve Article Tags : Websites & Apps ASP-Methods ASP-Basics Similar Reads ASP MoveFile Method The ASP MoveFile Method is used to move one or more files from one place to another place. It is an in-built method of the FileSystem Object. Syntax FileSystemObject.MoveFile source,destination Parameter Values: source: It is a required attribute. It contains a Character string file that can incl 1 min read ASP MoveFolder Method The ASP MoveFolder Method is used to move one or more folders from one place to another place. It is an in-built method of the FileSystem Object. Syntax: FileSystemObject.MoveFolder source,destination Parameter Values: source: It is a required attribute. It contains a Character string file that can 1 min read File.Move() Method in C# with Examples File.Move() is an inbuilt File class method that is used to move a specified file to a new location. This method also provides the option to specify a new file name. Syntax: public static void Move (string sourceFileName, string destFileName); Parameter: This function accepts two parameters which ar 2 min read move cmd command The move is an internal command found in the Windows Command Interpreter (cmd) that is used to move files and folders/directories. The command is robust than a regular move operation, as it allows for pattern matching via the inclusion of Wildcards in the source path. The command is a very generic o 5 min read moveto() function in C The header file graphics.h contains moveto() function which changes the current position to (x, y) Syntax : void moveto(int x, int y); Examples : Input : x = 70, y = 40 Output : Input : x = 50, y = 80 Output : Below is the implementation of moveto() function: C // C Implementation for moveto() #incl 2 min read Like