Latest web development tutorials

ASP MoveFile method

FileSystemObject Object Reference Complete FileSystemObject Object Reference

MoveFile method to move one or more files from one location to another.

grammar

FileSystemObject.MoveFile source,destination

参数 描述
source 必需的。指向要移动的文件的路径。可在最后的成分中包含通配符。
destination 必需的。移动文件的目的地。不能包含通配符。

Examples

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


FileSystemObject Object Reference Complete FileSystemObject Object Reference