Microsoft VBScript 运行时错误 (0x800A0046) 没有权限: set hf=fso.CreateTextFile(Server.mappath..)
setfso=Server.CreateObject("Scripting.FileSystemObject")sethf=fso.CreateTextFile(Serv...
set fso=Server.CreateObject("Scripting.FileSystemObject")
set hf=fso.CreateTextFile(Server.mappath("../Include/Const.asp"),true)
hf.write "<" & "%" & vbcrlf
hf.write "Const SysRootDir = " & chr(34) & ReplaceConstChar(trim(request("SysRootDir"))) & chr(34) & "" & vbcrlf
hf.write "Const SiteDataPath = " & chr(34) & ReplaceConstChar(trim(request("SiteDataPath"))) & chr(34) & "" & vbcrlf
hf.write "Const EnableStopInjection = " & ReplaceConstChar(trim(request("EnableStopInjection"))) & "" & vbcrlf.
修改权限后还是不行。 展开
set hf=fso.CreateTextFile(Server.mappath("../Include/Const.asp"),true)
hf.write "<" & "%" & vbcrlf
hf.write "Const SysRootDir = " & chr(34) & ReplaceConstChar(trim(request("SysRootDir"))) & chr(34) & "" & vbcrlf
hf.write "Const SiteDataPath = " & chr(34) & ReplaceConstChar(trim(request("SiteDataPath"))) & chr(34) & "" & vbcrlf
hf.write "Const EnableStopInjection = " & ReplaceConstChar(trim(request("EnableStopInjection"))) & "" & vbcrlf.
修改权限后还是不行。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询