TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Check Drive Information
Zaid Ansari
Sep 28
2015
Code
808
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
DriveInfoAndSize.zip
//Using System.IO;
private
void
Form1_Load(
object
sender, EventArgs e)
{
foreach
(var item
in
DriveInfo.GetDrives())
{
lblDriveType.Text = item.Name.ToString();
lblTotalSize.Text = item.TotalSize.ToString();
lblFreeSpace.Text = item.TotalFreeSpace.ToString();
}
}
Find Drive Size
Find Drive Type