Jump to content
Sign in to follow this  

Search CD drive letter and send as text

Recommended Posts


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!")
if ubound($CD) = 2 then
   ControlSend("Offnen", "", "[CLASS:ToolbarWindow32; INSTANCE:2]", $CD[1])


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...