writes
[snip]
Quote:
>I'm looking for a way to eject a cd from a cd-rom drive. Any ideas?
1) Press the eject button
2) Find the device in explorer and right click eject.
3) It seems that 2) is actually implemented by a call of
Private Declare Function mciSendString Lib "winmm.dll" Alias _
"mciSendStringA" (ByVal lpstrCommand As String, _
ByVal lpstrReturnString As String, ByVal wReturnLength As Integer, _
ByVal hCallback As Integer) As Long
"Windows Scripting Secrets" ISBN 0-7645-4684-8
provides object access to that function so that the following works
set mci = createobject("mci.manager")
mci.sendmcistring("set cdaudio door open wait")
There are doubtless other ways but that is all I know!
--
Walter Briscoe