Skip to content
Related Articles

Related Articles

Improve Article
ASP MoveFile Method
  • Last Updated : 23 Feb, 2021

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. 


FileSystemObject.MoveFile source,destination

Parameter Values: 

source: It is a required attribute. It contains a Character string file that can include wildcard characters, for one or more files to be moved.

destination: It is also a required attribute. It specifies a character string value Where to move the file or files. It does not include wildcard characters.

Example: Below code illustrates the ASP MoveFile Method. 


dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.MoveFile "C:\Folder1\A\A.txt","C:\Folder2\B\"
response.write("The location of the file is changed")
set fs=nothing


The location of the file is changed
My Personal Notes arrow_drop_up
Recommended Articles
Page :