Sign in to follow this  
Followers 0
thegrdream

Search CD drive letter and send as text

3 posts in this topic

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

 

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