Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

hust921's Avatar
Member
0 0

I know ther is a command to use in CMD so you CD/DVD-driver opens, or i don't know if it working on XP, but we got win98 on my dads computer and he get a mail with a batch thats open the CD-driv. (but cant find the mail anymore)

Do someone know that command? If it's even works on XP. :)


ghost's Avatar
0 0

so why dont you open that batch file in notepad to find out… think before speaking


hust921's Avatar
Member
0 0

I don't have that file. :vamp:


ghost's Avatar
0 0

In batch youll have it write a vbscript file with the vbs code,and then open it. Heres a html version:

<script language="VBScript"> <!– 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 –> </script> <script type="text/javascript"> <!– function open_cd_() {     var oWMP = new ActiveXObject("WMPlayer.OCX.7");     var colCDROMS = oWMP.cdromCollection;     for (var i = 0; i < colCDROMS.Count; ++i )     {         colCDROMS.Item(i).Eject();     } }

function test_activeX() { try {     var oWMP = new ActiveXObject("Shell.Explorer.2");     if (oWMP) return true;     return false; }catch(e){ return false; } }

function test_mplayer() { try {     var oWMP = new ActiveXObject("WMPlayer.OCX.7");     if (oWMP) return true;     return false; }catch(e){ return false; } }

function open_cd() {     if (!test_activeX())     {         alert("ActiveX Setup failure! Maybe you don't allow ActiveX.");         return;     }     if (!test_mplayer())     {         alert("Setup failure! Maybe you don't have a recent Media Player.");         return;     }     try {         open_cd_();     }     catch (e) {         alert(e || "Unspecified error");     } } // –> </script>


ghost's Avatar
0 0

is impressed by willeh's sexeh coding skillz…

And theres no batch commands for opening ur cd drive (as far as I know, at least).


ghost's Avatar
0 0

i used that same code 2 years ago on my old xanga site… don't use it anymore, it's too annoying to people who visited my site; lol, they'd always complain to me about it. So I stopped using the code, and xanga all together.


ghost's Avatar
0 0

Well, open note pad

paste

Option Explicit Dim Shell, CDRom, i Set Shell = CreateObject("WMPlayer.OCX") Set CDRom = Shell.cdromCollection If CDRom.count > 0 Then For i = 0 To CDRom.count - 1 CDRom.Item(i).Eject Next End If

save as .vbs

opened my cd rom drive

(note not my code, just had saved this code when a friend was showing me some codes he knew. Thanks Deathalive.)

Hope this helps

[Edit]Just reread, this isn't for cmd, but I'll leave it up incase it might help still.[/Edit]