栏目导航
热点推荐
- ASP下批量删除数据的两种方法
- 关于二级域名共享cookies
- ASP错误代码大全
- ASP代码实现show.asp?id=26变成s
- ASP错误信息解决:IIS启用父路径
- 一些常用的正则表达式大全
- ASP超级链接和HTML函数正则表达
- ASP隐藏下载地址及防盗代码
- 最常用的正则表达式示例
- ASP程序数据库被挂马的处理方法
- ASP生成html的新方法
- 精通ASP错误提示大全
阅览排行
asp fso教程:asp move文件移动实例教程
www.jz123.cn 2008-11-13 来源: 中国建站 编辑整理 我要投递新闻
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 %>
2
上一篇:asp fso:创建文件 CreateTextFile 实例教程 下一篇:asp fso教程:ASP Delete 方法