Const CDROM = 4
For Each d in CreateObject("Scripting.FileSystemObject").Drives
If d.DriveType = CDROM Then Eject d.DriveLetter &
":\"
Next
Sub Eject(CDROM) '弹出光驱
Dim ssfDrives
ssfDrives = 17
CreateObject("Shell.Application").Namespace(ssfDrives).ParseName(CDROM).InvokeVerb("E&ject")
End Sub