Set fso = CreateObject("Scripting.FileSystemObject")
if not fso.FolderExists(nowfld) then
response.write("需要修改的文件夹路径不正确或文件夹名称输入错误")
else
fso.CopyFolder nowfld,newfld
fso.DeleteFolder(nowfld)
end if
set fso=nothing
Set fso = CreateObject("Scripting.FileSystemObject")
if not fso.FolderExists(nowfld) then
response.write("需要修改的文件夹路径不正确或文件夹名称输入错误")
else
if fso.FolderExists(newfld) then
response.write("您命名的新文件夹名称已经存在")
else
fso.CopyFolder nowfld,newfld
fso.DeleteFolder(nowfld)
end if
end if
set fso=nothing