Results 1 to 3 of 3

Thread: Drive Info...

  1. #1

    Thread Starter
    Hyperactive Member nagasrikanth's Avatar
    Join Date
    Nov 2004
    Location
    India,Hyderabad.
    Posts
    420

    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

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Drive Info...

    This will get your hard drive info. Check out the other classes in the ManagementClass (WMI).
    VB Code:
    1. Dim objMan As New Management.ManagementClass("Win32_DiskDrive")
    2. Dim objCol As Management.ManagementObjectCollection = objMan.GetInstances
    3. Dim objItem As Management.ManagementObject
    4. For Each objItem In objCol
    5.     Dim pi As Management.PropertyDataCollection = objItem.Properties
    6.     Dim p As Management.PropertyData
    7.     For Each p In pi
    8.         Console.WriteLine(p.Name & " : " & Convert.ToString(p.Value))
    9.     Next
    10. 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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    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
  •  



Click Here to Expand Forum to Full Width