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

this is how to know drive type

9815402440
100+
P: 180
hi

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(drive1.drive)
If d.DriveType = CDRom Then
' do something
endif

all drive types are listed by vb6 after = sign

to run this code add reference to microsoft scripting runtime

regards
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.