Quesion: Gather HDD Info

This is a discussion on Quesion: Gather HDD Info within the Windows Programming forums, part of the Platform Specific Boards category; I was wondering what method I could use to get a specific hdd's or partition's disk space information and store ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Quesion: Gather HDD Info

    I was wondering what method I could use to get a specific hdd's or partition's disk space information and store the free space on that partition into a variable

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    I'd use a microscope, a pencil, and a handheld magnet. It's the only way that does not depend on the operating system.


    In other words, post in the platform-specific board that fits your target platform.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    3
    its a maxtor sata-155 using via
    amd 64
    windows xp

    that the info you wanted?

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    You can use the GetDiskFreeSpaceEx function.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    3
    Thanks a lot

    Btw, why was this moved to windows? It's a c++ question

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,498
    > why was this moved to windows? It's a c++ question
    Because the answer is specific to your OS.
    Because the answer can be used by either C or C++
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help displaying info from structure
    By kisiellll in forum C Programming
    Replies: 6
    Last Post: 04-04-2009, 12:51 PM
  2. Question about getting an info class from another Form
    By Joelito in forum C# Programming
    Replies: 0
    Last Post: 10-16-2006, 01:02 PM
  3. Help doing an e-mail program in c...
    By Tyler_Durden in forum C Programming
    Replies: 88
    Last Post: 01-02-2005, 02:12 PM
  4. Binary trees search problem...
    By Umoniel in forum C Programming
    Replies: 2
    Last Post: 02-22-2004, 01:29 PM
  5. Replies: 3
    Last Post: 12-06-2001, 04:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21