Jump to content
Sign in to follow this  

CD Burning when drive unknown

Recommended Posts


hello you clever people. . . question. . .

How can i detect the drive letter of a RW drive if i havent got XP and more than 2 CD drives??

Any ideas???

ok, i sussed it thanks for looking

$var = DriveGetDrive( "CDROM" )

if $var[0] > 0 then

$CD = RegRead("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Imapi\Enum", "0")

$i = 1

While $i <= $var[0]

$Seek = RegRead("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Cdrom\Enum", $i-1)

if $Seek = $CD then



$i = $i + 1


$Seek = stringreplace(StringMid ($Seek, 10, StringInStr ( $Seek, "__")-10),"_", " ")

MsgBox(4096,"Drive ", $var[$i])

MsgBox(4096,"CD Drive Description " & $var[$i], $Seek)


Edited by Rick

Who needs puzzles when we have AutoIt!!

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