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/index.php/458271582646974805.html">从云林站坐地铁到无锡市第一人民医院怎么坐</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/211880578.html">尼日利亚的气候?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/247787401680390884.html">离婚率怎样计算</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/746491640043896652.html">美国面签没通过,第二次签证面签官问和第一次有什么不同怎么回答</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/594777163.html">排列组合的消除问题</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/60720777.html">学医学检验的大专毕业生如何考资格证</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/557756469.html">GTASA女警察女友在哪?</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/2014415842951139748.html">求推荐一款手机4000以下的。</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/464567694.html">江苏扬州到烟台直达火车。不好意思没分了详细点啊</a></div> </div> <div class="wdxgwtcont"> <div class="wdxgtitle"><a href="https://www.g230.com/index.php/142971793.html">联想y430有酷睿2双核 p8600的处理器吗</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>