|
-
Nov 27th, 2009, 10:22 PM
#16
Re: Need help getting Initial HDDSize
All the information you need has already been provided. You're welcome to post your code if you want but you laready have everything you need.
1. Create an instance of the DriveInfo class, passing the drive letter of the drive of interest to the constructor
If you've been working on that Home & Learn tutorial then you know how to create objects and you know how to pass arguments to methods. That's this is.
2. Once you've got your instance, you get the desired property values from it do with them whatever's appropriate. You've got a code example of that.
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
|