现在的位置: 首页 > 综合 > 正文

怎样弹出 CD-ROM

2013年08月22日 ⁄ 综合 ⁄ 共 283字 ⁄ 字号 评论关闭

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

抱歉!评论已关闭.