I need this
Code:
 Dim driveletter As String = ""
        Dim allDrives() As System.IO.DriveInfo = System.IO.DriveInfo.GetDrives()
        For Each drive As System.IO.DriveInfo In allDrives
            If drive.DriveType = IO.DriveType.CDRom Then
                'OK Now we have the CDRom
                driveletter = drive.RootDirectory.ToString()
            End If
        Next
and this combined
Code:
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Process.Start("C:\data\CCleaner\CCleaner.exe").WaitForExit()
        Process.Start("C:\data\Malwarebytes\mbam.exe")
    End Sub
I am trying to get the program to recognize the CD/DVD drive.... where it is highlighted C:.

The idea of the program is to make a launcher to automatically launch various freeware programs ergo CCleaner,Malwarebytes,SuperAntiSpyware, etc. Once I get the program to recognize what drive it is then I also need to figure out how to make it Start, Close, then start the next one.... So obviously

Code:
Process.Start("C:\data\CCleaner\CCleaner.exe").waitforexit()
Process.Start("C:\data\Malwarebytes\mbam.exe").Waitforexit()
Won't work because the .waitforexit() isn't waiting for exit of CCleaner.. WHY? And could a delay be incorporated into this to make it wait for the .waitforexit()? BTW for you trolls I am very very new to VB so as simple as this may be it is my way of learning so GTFO if you have hate mail.