Microsoft VBScript 运行时错误 错误 ✀800a01a8✀

2024-11-26 13:33:06
推荐回答(4个)
回答1:

把所有 textfile 改成 txtFile

你把对象变量名称写错了 真晕

修正后代码如下:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>




创建文件事例



正在写入中 ....


<%
Set fso = Server.CreateObject("scripting.filesystemobject")
Set txtFile = fso.CreateTextFile(Server.MapPath("poem.htm"),true)
txtFile.writeLine ""
txtFile.writeLine ""
txtFile.writeLine "镰?/title>" <br>txtFile.writeLine "</head>" <br>txtFile.writeLine "<div align =center >" <br>txtFile.writeLine "<h3>鏂规硶</h3>" <br>txtFile.writeLine "<hr colore = red>" <br>txtFile.writeLine "<p>vvv</p>" <br>txtFile.writeLine "<p> gg<p>" <br>txtFile.writeLine "</div>" <br>txtFile.writeLine "</body>" <br>txtFile.writeLine "</html>" <br>txtFile.close <br>%> <br><p>文件创建成功!请单击下面的连接打开该文件:</p> <br><a href = "poem.htm" title ="望庐山瀑布" class="STYLE1">查看文件</a> <br></body> <br></html></p> </div> </div> <div class="clear"></div> </div> <div class="wdhdnr"> <div class="huidanrtop"> <div class="wdhuidaxinx"> <div class="wdhuidaxm">回答2:</div> </div> </div> <div class="clear"></div> <div class="wdhuidanrmid"> <div class="zuijiacont"> <p>我发现一个错误:<br>你前面使用的记录集是rs,但最后移动游标却用tuoce.movenext。</p> </div> </div> <div class="clear"></div> </div> <div class="wdhdnr"> <div class="huidanrtop"> <div class="wdhuidaxinx"> <div class="wdhuidaxm">回答3:</div> </div> </div> <div class="clear"></div> <div class="wdhuidanrmid"> <div class="zuijiacont"> <p>myuser.open<br>mysql,"connection对像名",1,3就对了</p> </div> </div> <div class="clear"></div> </div> <div class="wdhdnr"> <div class="huidanrtop"> <div class="wdhuidaxinx"> <div class="wdhuidaxm">回答4:</div> </div> </div> <div class="clear"></div> <div class="wdhuidanrmid"> <div class="zuijiacont"> <p>最可能的原因可能是<br>没有定义或数据库中找不到这个变量,检查程序代码吧...</p> </div> </div> <div class="clear"></div> </div> </div> </div> <div class="wendaright"> <div class="wdluluerwema"> <div class="wdxgwttop">相关问答</div> <div class="wdxgwtnr"> </div> <div class="clear"></div> </div> <!-- 其他随机问答['id'=>alphaID($like['zid'])] --> <div class="wdluluerwema"> <div class="wdxgwttop">最新问答</div> <div class="wdxgwtnr"> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/67145159.html">经济全球化和区域经济一体化 英语怎么说?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/316790319.html">怎样快速的去找赞助商,拉赞助?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/241552366.html">用万用表各电阻档测可控硅 MCR100-6,各两脚之间电阻全是无穷大,新买的,晕,是不是坏了。</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/2016994459771813748.html">细菌的营养方式有哪几种?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/268709379704899845.html">按键精灵脚本编辑使用的是什么语言?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/1825065924892192988.html">中国电信“翼支付手机客户端”有哪些功能?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/571366959.html">护花危情会拍第二部吗 什么时候</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/2144219261227552588.html">父母很偏心姐姐,我和老公有困难时,爸爸害怕我麻烦他,老公做生意时,向他们借钱,他们没有给。现在他们</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/1933628127892922307.html">什么职业前景好?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.51a.net/2016670399076896908.html">15分钟小学语文微型课教学视频</a></div> </div> </div> </div> </div> <div class="clear"></div> <div class="footer"> <!-- 移动底部导航 --> <div class="fanhuitop"><a href="#top" ref="nofollow"><img src="https://www.51a.net/static/old/img/fhtop.png" alt="返回顶部" title="返回顶部"></a></div> <div class="dibu"> <div class="dibu"> </div> </div> <div class="banquan"> <p>内容全部来源于网络收集,如有侵权,请联系网站删除:QQ:24596024</p> </div> </div> </div> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?aa60e2f779ee696abd6a207eac06903d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>