创建目录java:请高手相助!!

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 10:08:27
我在本地测试网页的时候asp源码的,出现了下面一个错误:Server.MapPath(), ASP 0171 (0x80004005)
必须为 MapPath 方法指定路径参数。
/ceshi/admin/chinaue_b2b_admin_check.asp, 第 20 行
下面是那段源码:

<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/function.asp"-->
<%if session("userkey")="" or session("username")="" then%>
<script language=javascript>
alert( "错误:您无权进行版面管理!" );
location.href = "../err.asp"
</script>
<%end if%>
<%
response.buffer=true
Const PurviewLevel=1
Const CheckChannelID=0
Const PurviewLevel_Others="Database"
%>
<%
dim Action,FoundErr,ErrMsg
Action=trim(request("Action"))
dim dbpath
dim ObjInstalled
dbpath=server.mappath(strSQLDataBase) 注明:就是这个位置错误!
ObjInstalled=IsObjInstalled("Scripting.FileSystemObject")
%>

dbpath=server.mappath("文件名")//不是字符串