Sign in to follow this  
Followers 0
Rick

CD Burning when drive unknown

1 post in this topic

#1 ·  Posted (edited)

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

exitloop

endif

$i = $i + 1

wend

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

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

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

endif

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  
Followers 0