弹出CD-ROM时出现VBScript错误 [英] VBScript Error while ejecting the CD-ROM

查看:122
本文介绍了弹出CD-ROM时出现VBScript错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用VBScript创建一个asp.net应用程序.为此,我正在尝试打开CD-Rom

使用以下代码

Hi i am creating one asp.net application with VBScript. In that i am trying to open the CD-Rom

using the following code

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then
        For i = 0 to colCDROMs.Count - 1
                colCDROMs.Item(i).Eject
        Next ' cdrom
End If




但是它在Internet Explorer中给出了以下错误....

由于错误80020102而无法完成操作.

我该如何解决.....




but it is giving the following error in internet explorer....

Could not complete the operation due to error 80020102.

How can i solve this.....

推荐答案

这可能是由于标记代码形成不正确或脚本代码中的垃圾文本所致.确保脚本引用正确且格式正确.

看看是否有帮助:
由于错误80020101而无法完成操作 [^ ]
It may be because of improper tag formation or junk text in script code. Make sure the script reference is correct and formed correctly.

See if this helps:
Could not complete the operation due to error 80020101[^]


这篇关于弹出CD-ROM时出现VBScript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆