filepath=server.MapPath("upfile/004.doc")
upfilepath=server.MapPath("ziyuan/11")
set objFso = server.CreateObject("Scripting.FileSystemObject")
if (objFso.FileExists(upfilepath)) then
objFso.MoveFILE filepath,upfilepath
else
if not objFso.FolderExists(upfilepath) then
objFso.CreateFolder(upfilepath)
end if
objFso.MoveFILE filepath,upfilepath
end if