代码为:(sqb为虚拟目录下的文件夹)
neirong="asdasd"
set lj=createobject("scripting.filesystemobject")
strPath="sqb/1.txt"
if not lj.fileExists(strPath) then
set dk=lj.CreateTextFile(strPath)
end if
dk.writeline neirong
代码为:(sqb为虚拟目录下的文件夹) neirong="asdasd" set lj=createobject("scripting.filesystemobject") strPath="sqb/1.txt" if not lj.fileExists(strPath) then set dk=lj.CreateTextFile(strPath) end if dk.writeline neirong
neirong="asdasd"
set lj=createobject("scripting.filesystemobject")
strPath=Server.MapPath("sqb/1.txt")//转换成服务器上的实际路径
if not lj.fileExists(strPath) then
set dk=lj.CreateTextFile(strPath)
end if
dk.writeline neirong
neirong="asdasd"
set lj=createobject("scripting.filesystemobject")
strPath=Server.MapPath("sqb/1.txt")//转换成服务器上的实际路径
if not lj.fileExists(strPath) then
set dk=lj.CreateTextFile(strPath)
end if
dk.writeline neirong