disk capacity windows

This is a discussion on disk capacity windows within the C Programming forums, part of the General Programming Boards category; Hello there, i am trying to get the equivalent of statvfs for windows such as disk capacity - ie to ...

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    32

    disk capacity windows

    Hello there,
    i am trying to get the equivalent of statvfs for windows such as disk capacity - ie to find the absaloute space remaining or space consumed as a percentage.
    Does such a library exist?

    any help you can give me would greatly be appreciated

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    If you're asking a Windows specific question, it would be better to post it in the Windows Programming forum.
    After doing a simple search on Google, I believe this is what you're looking for: GetDiskFreeSpaceEx()
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  3. #3
    msh
    msh is offline
    Novice
    Join Date
    Jul 2009
    Posts
    568
    Quote Originally Posted by ashaikh432 View Post
    Hello there,
    i am trying to get the equivalent of statvfs for windows such as disk capacity - ie to find the absaloute space remaining or space consumed as a percentage.
    Does such a library exist?

    any help you can give me would greatly be appreciated
    Yes. The library is called "Win32 API". You can learn quite a lot about it here.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading a (possibly EXT2) partition with Windows
    By nickname_changed in forum Linux Programming
    Replies: 5
    Last Post: 08-20-2003, 07:43 PM
  2. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  3. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  4. Direct disk access in DOS
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 02-26-2002, 01:52 PM
  5. reqd a system call
    By nrohan in forum C Programming
    Replies: 2
    Last Post: 11-20-2001, 02:56 AM

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