无法连接到GetFolder for FileSystemObject ASP Classic中的映射驱动器

时间:2018-05-24 08:13:30

标签: asp-classic filesystems mapped-drive

我正在尝试连接到R:\database\attendanceData\映射驱动器,以便在以下代码中使用

sDir = "R:\database\attendanceData\"

Set fso = Server.CreateObject("Scripting.FileSystemObject") 
Set obj_FolderBase = fso.GetFolder(sDir)

if obj_FolderBase.Files.Count = 0 then '=== Check if Attendance record data is in
    response.write " No Attendance Data Found!"
    response.End 
end if

response.write "IT is working"
response.End

文件结构

Structure

但是我收到以下错误

Error

但是,如果我将文件移动到C:驱动器,一切正常。

但它需要在共享驱动器中。我是否需要在R:设置一些权限,或者我错过了某些内容,请帮忙。

0 个答案:

没有答案