Jump to content

Recommended Posts

Posted
How can I use DriveGetDrive option to check all the drives attched on PC & then tell it by using DriveGetType I want to tell it that if it CDROm then open the CD room???
Posted (edited)

How can I use DriveGetDrive option to check all the drives attched on PC & then tell it by using DriveGetType I want to tell it that if it CDROm then open the CD room???

$cdroms = DriveGetDrive("CDROM")
for $i = 1 to $cdroms[0]
CDTray ($cdrom[$i], "open" )
Next
Edited by maqleod
[u]You can download my projects at:[/u] Pulsar Software
Posted

Can U show me by using conditional statement like "IF" how can we do the same ting??

why do you even need an if statement?

$cdroms = DriveGetDrive("CDROM") singles out the cdroms already.

[u]You can download my projects at:[/u] Pulsar Software

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...