ASP Move Method
Definition and Usage
The Move method moves a specified file or folder from one location to another.
Syntax:
FileObject.Move(destination) FolderObject.Move(destination)
Parameter | Description |
---|---|
destination | Required. The destination to move the file/folder to. Wildcards are not allowed. |
Instance
An example for File object
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.GetFile("d:\test.txt") f.Move("d:\test\test.txt") set f=nothing set fs=nothing %>
An example for Folder object
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("d:\test") fo.Move("d:\asp\test") set fo=nothing set fs=nothing %>