Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP MoveFile Method

ASP MoveFile Method


FileSystemObject Reference Complete FileSystemObject object reference manual


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

Syntax

FileSystemObject.MoveFile source,destination

Parameters Description
source Required. The path to the file(s) to move. Wildcards can be included in the last component.
destination Required. The destination for the moved file(s). Wildcards cannot be included.

Example

<%

dim fs

set fs=Server.CreateObject("Scripting.FileSystemObject")

fs.MoveFile "c:\web*.gif","c:\images"

set fs=nothing

%>


FileSystemObject Reference Complete FileSystemObject object reference manual