ASP Move 方法
❮ 完整的 Folder 物件參考
Move 方法將指定的檔案或資料夾從一個位置移動到另一個位置。
語法
FileObject.Move(destination)
FolderObject.Move(destination)
引數 | 描述 |
---|---|
destination | 必需。檔案或資料夾要移動到的位置。不允許使用萬用字元。 |
File 物件示例
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.GetFile("c:\test.txt")
f.Move("c:\test\test.txt")
set f=nothing
set fs=nothing
%>
Folder 物件示例
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
fo.Move("c:\asp\test")
set fo=nothing
set fs=nothing
%>
❮ 完整的 Folder 物件參考