ASP MoveFile 方法

定義和用法

MoveFile 方法把一個或多個文件從一個位置移動到另一個位置。

語法:

FileSystemObject.MoveFile source,destination
參數 描述
source 必需的。指向要移動的文件的路徑。可在最后的成分中包含通配符。
destination 必需的。移動文件的目的地。不能包含通配符。

實例

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