ASP MoveFile メソッド

定義と用法

MoveFile メソッドは、一つまたは複数のファイルを一つの位置から別の位置に移動します。

语法:

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

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