读取dbf 文件,里面用的是相对路径,怎样改成绝对路径?
Dim conn,Driver,SourceType,DBPath
' 建立Connection 对象
Set conn = Server.CreateObject("ADODB.Connection")
Driver = "Driver={Microsoft Visual FoxPro Driver};"
SourceType = "SourceType=DBF;"
DBPath = "SourceDB=" & Server.MapPath("\report\dbf")
' 调用Open 方法打开数据库
conn.Open Driver & SourceType & DBPath