Jump to content

CD Burning when drive unknown


Rick
 Share

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...