Re: Getting volume information

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Here is what I get from the code you posted:

----------------------
label: APPS
Format: NTFS
Name: C:\
Root Directory: C:\
Type: Fixed
Is Ready: True
----------------------
label: DATA
Format: NTFS
Name: D:\
Root Directory: D:\
Type: Fixed
Is Ready: True
----------------------
label: Audio CD
Format: CDFS
Name: E:\
Root Directory: E:\
Type: CDRom
Is Ready: True
----------------------
label: MARNV009_J
Format: NTFS
Name: Z:\
Root Directory: Z:\
Type: Network
Is Ready: True

What do you mean by "card reader"? (other message)

I use the same class to determine if I have a removable PCMA card in my app
and it works great. Something is screwy here :)

WhiteWizard(aka Gandalf)
MCSD.NET, MCAD, MCT


"herc" wrote:

Gandalf,

This is interesting, here is what I get when I run the program, or at
least part of it:


----------------------
Root Directory: D:\
Type: CDRom
Is Ready: False
----------------------
Root Directory: E:\
Type: CDRom
Is Ready: False
----------------------
Root Directory: F:\
Type: CDRom
Is Ready: False
----------------------
label:
Format: NTFS
Name: G:\
Root Directory: G:\
Type: Network
Is Ready: True
----------------------

When I look at Windows Explorer (running XPSP2), things are displayed
this way:

DVD Drive (D:)
DVD-RW Drive (E:)
DVD Drive (F:)
cartoof on '172.16.52.2' (G:)

How is it getting that the CDRom's are really DVD's and DVD-RW and how
is it getting the actual share name of the network drive mounted to G:?
I am trying to develop to the lowest common factor, thus more
information is ideal;)


WhiteWizard wrote:
Herc,

I copied your code into a console app and it runs fine for me. Maybe your
drives really don't have a label?

WhiteWizard(aka Gandalf)
MCSD.NET, MCAD, MCT


.



Relevant Pages

  • Re: Getting volume information
    ... Root Directory: D:\ ... I am trying to develop to the lowest common factor, ... drives really don't have a label? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: move / to a new hard-drive
    ... Untar all the tarballs here using tar xf ... Now I have a complete copy of my root directory structure on the new ... refers to the location of the root directory by the Label "/". ...
    (linux.redhat)
  • How would you...
    ... I have a two problems in my daily life with VSS that I feel rather hard to overcome. ... When we finish a release I'd like to set a label with a version number on the project *and all it's dependencies* so I can later easily retrieve all the files that were used to build a certain release. ... How would you do this if SomeHugeApplication depends on SomeLibrary1? ... I'd also rather not want to label the root directory, as that would label all the 100+ tiny projects too. ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: [PATCH take 3][RFC] fat: Save FAT root directory timestamps to volume label
    ... the FAT root directory timestamps as the timestamps of the FAT volume label ... if a volume label entry exists. ...
    (Linux-Kernel)
  • Re: [PATCH take 3][RFC] fat: Save FAT root directory timestamps to volume label
    ... the FAT root directory timestamps as the timestamps of the FAT volume label ... if a volume label entry exists. ...
    (Linux-Kernel)