www.xbdev.net
xbdev - software development
Friday April 19, 2024
home | contact | Support | Javascipt... so much power in such a few lines of code..


Eject....scary stuff!

With just a few lines of a script you can even eject your computer cd roms....

 

<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>

 

 

To see the script working "Click Here", or to download the script "download".

 
Advert (Support Website)

 
 Visitor:
Copyright (c) 2002-2024 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.