Question about disk information

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    Question about disk information

    Hello,
    i have some questions.

    1) How can I check, if disk C: is NTFS? And how can i get some others
    information about C: like free space or size.
    2) How can I get, in which groups (Administrators , Power User ...) is
    current logged user?

    Thanks a lot
    Lubos


  • Willy Denoyette [MVP]

    #2
    Re: Question about disk information


    <l> wrote in message news:egJTQs2cFH A.220@TK2MSFTNG P12.phx.gbl...[color=blue]
    > Hello,
    > i have some questions.
    >
    > 1) How can I check, if disk C: is NTFS? And how can i get some others
    > information about C: like free space or size.
    > 2) How can I get, in which groups (Administrators , Power User ...) is
    > current logged user?
    >
    > Thanks a lot
    > Lubos
    >
    >[/color]

    1. Use System.Manageme nt namespace classes and WMI.
    2. Check for "IsInRole" and "WindowsPrincip al" in the docs.

    Willy.


    Comment

    Working...