|
-
May 23rd, 2006, 01:28 AM
#1
Thread Starter
Hyperactive Member
Drive Info...
Hi guys...This is my first post in this thread..Im really new to VB.Net..
welll..Just now i would like to create a project where in it will shows all the drives in the system and the free space,used space,Volume name etc..
I want to develop the same in the asp.net with the help of vb.net..
now,If u come to my problem,I have the information that how to gather the data using File system objects which requires libraries,i dont think that every user of my application will have it (or is it enough,if the dll was registered in the server as it is a web app)..
and one more thing that was really bothering me is.."im not getting correct IDEA on how to present the same in the front end..."
Can u guys please suggest me on the same..
Thanx & regards
Srikanth.
The Difference between a Successful person and others is not a Lack of Knowledge,
But rather a Lack of WILL 
-
May 23rd, 2006, 01:34 AM
#2
Re: Drive Info...
This will get your hard drive info. Check out the other classes in the ManagementClass (WMI).
VB Code:
Dim objMan As New Management.ManagementClass("Win32_DiskDrive")
Dim objCol As Management.ManagementObjectCollection = objMan.GetInstances
Dim objItem As Management.ManagementObject
For Each objItem In objCol
Dim pi As Management.PropertyDataCollection = objItem.Properties
Dim p As Management.PropertyData
For Each p In pi
Console.WriteLine(p.Name & " : " & Convert.ToString(p.Value))
Next
Next
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 23rd, 2006, 11:52 AM
#3
Re: Drive Info...
You can also check out my codebank submission on WMI, check my sig...
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
|