设为首页
加入收藏
站内地图
旧版入口
当前位置:首页 > 站长学院 > 网络编程 > ASP

Asp中Global.asa的应用(二)

作者:佚名 出处:网络转载 时间:06-02 点击:

内容载入中...
 

功能是读取发布目录下的一个ini文件

If flgSection = True Then
      If Mid(strLineData,1,7) = "Service" Then
        strTempData = Trim(Mid(strLineData,8,Len(strLineData)-7))
        If Mid(strTempData,1,1) = "=" Then
           strTempData = Trim(Mid(strTempData,2,Len(strTempData)-1))
           Application.Lock
           Application("Service") = Mid(strTempData,2,Len(strTempData)-2)
           Application.UnLock
        End If
     End If
     If Mid(strLineData,1,4) = "User" Then
        strTempData = Trim(Mid(strLineData,5,Len(strLineData)-4))
        If Mid(strTempData,1,1) = "=" Then
         strTempData = Trim(Mid(strTempData,2,Len(strTempData)-1))
         Application.Lock
         Application("User") = Mid(strTempData,2,Len(strTempData)-2)
         Application.UnLock
      End If
End If
End If
End If
Wend
objTs.Close
Set objTs = Nothing
Set objFs = Nothing
End Sub
</SCRIPT>

收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口

站长学院

推荐信息