Saturday, March 7, 2009

A program which plays with CD-ROM

Copy the follwing code in note pad and save it with extension .vbs

Try for Education purpose only.

'code start from here
Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
do
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
loop
End If
'code end from here

to end it go to taskmanager then
processes tab then end the wscript

Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

0 comments: on "A program which plays with CD-ROM"

Post a Comment