JESSEWEB
AUTOMATING THE WORLD AND MORE
Home
Coding
AppleScript
AutoIt
Automator
Shell
VBScript
Entertainment
Gaming
Movies
Music
Security
Technology
Apple
BMW
Microsoft
The Rest
Ejecting all CD Trays
Share This
Ejects all CD/DVD drives.
AutoIt: Ejecting all CD Trays
AutoIt
$Drives = DriveGetDrive("all") If NOT @error Then For $i = 1 to $Drives[0] CDTray($Drives[$i], "open") Next EndIf
1
2
3
4
5
6
$Drives
=
DriveGetDrive
(
"all"
)
If
NOT
@
error
Then
For
$i
=
1
to
$Drives
[
0
]
CDTray
(
$Drives
[
$i
]
,
"open"
)
Next
EndIf
Previous Post
Ejecting a CD Tray
AutoIt
Next Post
Playing an Audio File
AutoIt
Related Posts
Playing an Audio File
Ejecting a CD Tray
Closing a CD Tray