ASP MoveFile Method
THE WORLD'S LARGEST WEB DEVELOPER SITE

ASP MoveFile Method


❮ Complete FileSystemObject Object Reference

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

Syntax

FileSystemObject.MoveFile source,destination

Parameter Description
source Required. The path to the file/files to be moved. Can contain wildcard characters in the last component.
destination Required. Where to move the file/files. Cannot contain wildcard characters

Example

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

❮ Complete FileSystemObject Object Reference