Question about disk information

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

1. Use System.Management namespace classes and WMI.
2. Check for "IsInRole" and "WindowsPrincipal" in the docs.

Willy.
 
Back
Top