ASP FSO操作文件(复制文件、重命名文件、删除文件、替换字符

<script language=vbscript runat=server>


Server.ScriptTimeOut = 9999


Function reName(sourceName,destName)
dim oFso,oFile
set oFso = Server.CreateObject("Scripting.FileSystemObject")
set oFile = oFso.getFile(Server.mappath(sourceName))
oFile.Name = destName
Set oFso = Nothing
Set oFile = Nothing
End Function


 

 </script>


http://wenku.baidu.com/view/ebc8a16e1eb91a37f1115c89.html

posted @ 2013-09-12 23:27  y0umer  阅读(193)  评论(0编辑  收藏  举报