Login | |
|
 |
RE: cd in - 3/8/2006 3:34:25 AM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1193
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
quote:
ORIGINAL: ebgreen What happens if you just do the command to eject again? I would think that it would de-ejectify? Disejectalize? Perform antiejectalization?
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
 |
RE: cd in - 3/8/2006 7:48:19 AM
|
|
 |
|
| |
ebgreen
Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
|
See if this helps: Dim oATO : Set oATO = WScript.CreateObject("wshAPIToolkitObject.ucATO", "") Const ssfDRIVES = &H11 ' namespace constant (drives folder = 17)... Const cdromDrvLtr = "G:\" ' specify your cd-rom drive letter... Set oSH = CreateObject("Shell.Application") ' close cd-rom drawer... nRtn = oATO.CallAPI("WINMM.DLL", "mciSendStringA", "Set CDAudio door closed", 0, 0, 0)
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: cd in - 3/9/2006 1:29:48 AM
|
|
 |
|
| |
mbouchard
Posts: 1922
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
quote:
ORIGINAL: ebgreen Ehhh...sometimes I am too rushed to really read code that I find. My apologies for providing a somewhat flawed example. We will forgive you, this time.... Never let it happen again.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
|
|