|
-
Oct 3rd, 2000, 05:08 PM
#2
Junior Member
Have you tried using the VBScripting object? Add a reference in your Project to "Microsoft Scripting Runtime".
Try using this Code:
Dim FileSys As FileSystemObject
Dim iDrive As Drive
'Open a New Instance of the File System Object
Set FileSys = New FileSystemObject
'Iterate through the Dives in the File System
For Each iDrive In FileSys.Drives
If (iDrive.DriveType = CDRom) Then
'Do what you want here
End If
Next
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|