改了还是出错啊!
生成栏目时!
Microsoft VBScript 运行时错误 错误 '800a0046'
没有权限
/admin/Refresh/Function.asp,行495
Sub CheckFolderExists(Path,ClassEName,DatePath,FileName) '检查目录
Dim FSOObj,TempPath,FolderObj,FileObj,ItemObj
Set FSOObj = Server.CreateObject("Scripting.FileSystemObject")
TempPath = Server.MapPath(Path)
if FSOObj.FolderExists(TempPath) = False then FSOObj.CreateFolder(TempPath)
TempPath = TempPath & "\" & ClassEName
if FSOObj.FolderExists(TempPath) = False then
FSOObj.CreateFolder(TempPath)
if DatePath<>"" then
Dim PathArray
PathArray = Split(DatePath,"/")
TempPath = TempPath & "\" & PathArray(0)
if FSOObj.FolderExists(TempPath) = False then FSOObj.CreateFolder(TempPath)
TempPath = TempPath & "\" & PathArray(1)
if FSOObj.FolderExists(TempPath) = False then FSOObj.CreateFolder(TempPath)
end if
else
Set FolderObj = FSOObj.GetFolder(TempPath) --->> 这个地方就是491行
Set FileObj = FolderObj.Files
for Each ItemObj in FileObj
if InStr(LCase(ItemObj.name),FileName) then
FSOObj.DeleteFile TempPath & "\" & ItemObj.name --->>行495
end if
Next
end if
Set FSOObj = Nothing
End Sub
[此贴子已经被作者于2005-7-17 0:25:48编辑过]