Dim FSO As FileSystemObject
Dim CDDrive As Drive Set FSO = New FileSystemObject Set CDDrive = FSO.GetDrive("E:") If CDDrive.IsReady Then MsgBox CDDrive.VolumeName Else MsgBox "Please enter a CD." End If Set CDDrive = Nothing Set FSO = Nothing |