大众世界 world of demotic + 社区新动力

 找回密码
 注册会员
搜索
查看: 3706|回复: 0

[ASP/ASPX] asp文件移动,复制,删除,重命名。

[复制链接]
发表于 2013-8-12 15:06:49 | 显示全部楼层 |阅读模式
[Visual Basic] 纯文本查看 复制代码
Set Fso = Server.CreateObject("Scripting.FileSystemObject")

'a="class_upload.asp"
'b="../../../n/FCKeditor/editor/filemanager/connectors/asp/"
'Fso.CopyFile server.MapPath(a),server.MapPath(b)&"\"&a,true
'response.write("成功:"&server.MapPath(a)&"至"&server.MapPath(b)&"\"&a&"=="&now()&"<br>")

a="FileUpload.asp"
b="../../../n/Admin/FileSystem/"
Fso.CopyFile server.MapPath(a),server.MapPath(b)&"\"&a,true
response.write("成功:"&server.MapPath(a)&"至"&server.MapPath(b)&"\"&a&"=="&now()&"<br>")

a="FileUploadAction.asp"
b="../../../n/Admin/FileSystem/"
Fso.CopyFile server.MapPath(a),server.MapPath(b)&"\"&a,true
response.write("成功:"&server.MapPath(a)&"至"&server.MapPath(b)&"\"&a&"=="&now()&"<br>")

a="SysFileManage.asp"
b="../../../n/Admin/FileSystem/"
Fso.CopyFile server.MapPath(a),server.MapPath(b)&"\"&a,true
response.write("成功:"&server.MapPath(a)&"至"&server.MapPath(b)&"\"&a&"=="&now()&"<br>")

a="UpLoadClass.asp"
b="../../../n/Admin/FileSystem/"
Fso.CopyFile server.MapPath(a),server.MapPath(b)&"\"&a,true
response.write("成功:"&server.MapPath(a)&"至"&server.MapPath(b)&"\"&a&"=="&now()&"<br>")
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Archiver|手机版|小黑屋|Wod Inc. ( 蜀ICP备20000008号-8

GMT+8, 2024-5-13 20:44 , Processed in 0.117844 second(s), 30 queries .

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

快速回复 返回顶部 返回列表