Group:  Microsoft Access ยป microsoft.public.access.modulescoding
Thread: Detect CD drive?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Detect CD drive?
"Steve Marshall" <stevem[ at ]west2net.net.au> 01.02.2006 04:01:12
Hi,

Anyone know if it's possible to detect if a drive letter is a CD or DVD?
I'd love to be able to do that!

Thanks

--
Remove numeral in e-mail address to send e-mails.
www.marshallarts.com.au


Re: Detect CD drive?
Mattias Jonsson <news[ at ]ett-remove-idesystem.se> 01.02.2006 12:06:27
Try this:
http://www.mvps.org/access/api/api0003.htm

It cannot tell the difference between a CD and DVD, but in case you
meant to differentiate between a CD/DVD and fixed/other, it will do that.

/ Mattias

From: Steve Marshall, on 1/31/2006 11:01 PM:
[Quoted Text]
> Hi,
>
> Anyone know if it's possible to detect if a drive letter is a CD or DVD?
> I'd love to be able to do that!
>
> Thanks
>
Re: Detect CD drive?
John Nurick <j.mapSoN.nurick[ at ]dial.pipex.com> 01.02.2006 19:25:45
You can do this using WMI. The VBScript sample code at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_tasks__computer_hardware.asp
can easily be modified to run as VBA.


On Wed, 01 Feb 2006 07:06:27 -0500, Mattias Jonsson
<news[ at ]ett-remove-idesystem.se> wrote:

[Quoted Text]
>Try this:
>http://www.mvps.org/access/api/api0003.htm
>
>It cannot tell the difference between a CD and DVD, but in case you
>meant to differentiate between a CD/DVD and fixed/other, it will do that.
>
>/ Mattias
>
>From: Steve Marshall, on 1/31/2006 11:01 PM:
>> Hi,
>>
>> Anyone know if it's possible to detect if a drive letter is a CD or DVD?
>> I'd love to be able to do that!
>>
>> Thanks
>>

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.

Re: Detect CD drive?
"Steve Marshall" <stevem[ at ]west2net.net.au> 01.02.2006 23:12:11
Beautiful! A thousand thanks.

--
Remove numeral in e-mail address to send e-mails.
www.marshallarts.com.au
"Steve Marshall" <stevem[ at ]west2net.net.au> wrote in message
news:1138767328.371326[ at ]quartz.westnet.net.au...
[Quoted Text]
> Hi,
>
> Anyone know if it's possible to detect if a drive letter is a CD or DVD?
> I'd love to be able to do that!
>
> Thanks
>
> --
> Remove numeral in e-mail address to send e-mails.
> www.marshallarts.com.au
>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net