|
-
Nov 27th, 2009, 10:01 PM
#14
Re: Need help getting Initial HDDSize
As I said back in post #2:
You can create an instance directly by passing a drive letter to the constructor.
If you only and specifically want information about C: drive then there's no point to looping through all the drives on the system. You should simply create one DriveInfo object specifically for the C: drive. You can then get whatever property values you want from that object and do whatever you need to do with them, e.g. display them in a Label on a Form.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|