By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,935 Members | 1,634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,935 IT Pros & Developers. It's quick & easy.

this is how to know drive type

P: 180

about a month ago a guy posted this question (how to know that selected drive is removable or cd rom)

this is how i did it.

Dim d As Drive
Dim fs As New FileSystemObject
Set d = fs.GetDrive(
If d.DriveType = CDRom Then
' do something

all drive types are listed by vb6 after = sign

to run this code add reference to microsoft scripting runtime

manpreet singh dhillon hoshiarpur
Jan 20 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,434
Thanks for the info, Manpreet. Do you happen to know whether the original question got an answer?
Jan 21 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.