ASP MoveFile Method

Definition and Usage

The MoveFile method moves one or more files from one location to another.

Syntax:

FileSystemObject.MoveFile source,destination
Parameter Description
source Required. Points to the path of the file to be moved. Wildcard characters can be included in the last component.
destination Required. The destination of moving files. Cannot contain wildcard characters.

Example

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.MoveFile "c:\web\*.gif","c:\images\"
set fs=nothing
%>