My friend made a vbscript file that opens and closes the CD drive. I could probably give you that.
can i have it. i want to troll my mom with that :D
Dim tsDim strDriveLetterDim intDriveLetterDim fs 'As Scripting.FileSystemObjectConst CDROM = 4 On Error Resume Next Set fs = CreateObject("Scripting.FileSystemObject") strDriveLetter = "" For intDriveLetter = Asc("A") To Asc("Z") Err.Clear If fs.GetDrive(Chr(intDriveLetter)).DriveType = CDROM Then If Err.Number = 0 Then strDriveLetter = Chr(intDriveLetter) Exit For End If End If NextMSGBOX "YOUR CD IS: " & strDriveLetter,VBOKONLY + 48,"CDROM=> " & strDriveLetterSet oWMP = CreateObject("WMPlayer.OCX.7" )Set colCDROMs = oWMP.cdromCollection For d = 0 to colCDROMs.Count - 1 colCDROMs.Item(d).Eject Next 'null'A1= msgbox ("Press key To Close Cd" & vbcrlf &_' " The Cd Will Close", 0 + 64, "Open Close Cd Tray")' For d = 0 to colCDROMs.Count 1' colCDROMs.Item(0).Eject 'Next 'nullset owmp = nothingset colCDROMs = nothingwscript.quit
This bombs you with IE windows. Use at your own risk.Code: [Select]@echo off:Astart iexplore google.comgoto:A
@echo off:Astart iexplore google.comgoto:A
Code: [Select]-snip-Google is your friend.
-snip-