当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Move 方法
The Move method moves the specified file or folder from one location to another.
ASP Move的作用是将指定的文件或文件夹从本地移动到异地。
| FileObject.Move(destination) FolderObject.Move(destination) |
| Parameter参数 | Description描述 |
|---|---|
| destination | Required. Where to move the file or folder. Wildcard characters are not allowed |
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.GetFile("c:test.txt")
f.Move("c:testtest.txt")
set f=nothing
set fs=nothing
%> |
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:test")
fo.Move("c:asptest")
set fo=nothing
set fs=nothing
%> |
评论 (0) All