ASP Move Method
Complete File Object Reference Manual
The Move method moves a specified file or folder from one location to another.
**Note:** Applying the Move method to a File or Folder produces exactly the same result as using FileSystemObject.MoveFile or FileSystemObject.MoveFolder. Note, however, that the FileSystemObject.MoveFile or FileSystemObject.MoveFolder methods can move multiple files or folders.
Syntax
FileObject.Move(destination)
FolderObject.Move(destination)
| Parameters | Description |
|---|---|
| destination | Required. The destination for moving the file or folder. Wildcards are not allowed. |
Example for the File object
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.GetFile("c:\test.txt")
f.Move("c:\test\test.txt")
set f=nothing
set fs=nothing
%>
Example for the Folder object
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
fo.Move("c:\asp\test")
set fo=nothing
set fs=nothing
%>
Complete File Object Reference Manual