'-----------------------文件移动函数----
Function FileMove(strFileSource,strFileDestination)
IF strFileSource = "" or isnull(strFileSource) Then
Response.Write("原文件路径不能为空!")
Response.End
End IF
IF strFileDestination = "" or isnull(strFileDestination) Then
Response.Write("目的路径不能为空")
Response.End
End IF
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(strFileSource) Then
fso.MoveFile strFileSource, strFileDestination
FileMove="Y"
Else
Response.Write("该文件不存在!")
Response.End
End If
Set fso = Nothing
End Function
dim myfile
set myfile=server.CreateObject("scripting.filesystemobject")
dim source_folderpath,destination_folderpath
source_folderpath=server.mappath("folderpath")
'''''''''''''copy file
myfile.copyfolder source_folderpath,destination_folderpath
'''''''''''''delete
'myfile.deletefolder source_folderpath,true