Jump to content
Sign in to follow this  
nokia6300

How drivegetdrive work to check?

Recommended Posts

nokia6300
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???

Share this post


Link to post
Share on other sites
maqleod

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

Share this post


Link to post
Share on other sites
nokia6300

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

Share this post


Link to post
Share on other sites
maqleod

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×