Jump to content

Search CD drive letter and send as text


Recommended Posts

Hello, 

 
I need your help. 
 
I want to do the following:
 
I want to open a file from a CD and will work on different computers, so I want to search the CD drive and then drive letter. The I want to send the drive letter as text.
 
I try the following, but does send nothing.
 
 
$CD = DriveGetDrive("CDROM")
If @error Then
    MsgBox(4096, "DriveGetDrive", "NO CD!")
Else
if ubound($CD) = 2 then
   ControlSend("Offnen", "", "[CLASS:ToolbarWindow32; INSTANCE:2]", $CD[1])
   endif
EndIf

 

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