Jump to content

Recommended Posts

Posted

hello everybody

I have this script to eject a cdrom in any windows which detect by itself and you don't have to put the name of drive

$var = DriveGetDrive( "CDROM" )
If not @error Then
For $i = 1 to $var[0]
CDTray($var[$i] , "open")
Next
EndIf

but if someone has two cdroms they both open when I start this script

now :

I wanna eject the cdrom which contain the script so I used this :

$var = DriveGetDrive( "CDROM" )
If not @error Then
For $i = 1 to $var[0]
CDTray($var[$i] , "open" & @ScriptDir)
Next
EndIf

but it didn't work

please help ...................

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...