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.g230.com/1900691312271780460.html">打印机打不了快递电子面单了</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/1674531884428218707.html">牛子加一笔是什么成语</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/366999749965565692.html">已经被录取,但想复读,该怎么退档?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/1384029082205931300.html">高等数学。空间曲线的切平面?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/419318480.html">树桩年轮为什么宽面是南方</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/562203718.html">魔兽世界满级了该干什么?听说要做日常冲声望,啥意思?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/238055602.html">什么是双色球奖池?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/40933386.html">感冒了吃新康泰克好不好</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/69090130.html">赛车总动员中所有的车的名字</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/360783640453149212.html">我想学按键精灵的脚本编程,应该先去学什么语言的编程。</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.g230.com/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?78733b427b0a9dce19688d903e89fc12"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>