Need help discovering disk-size

This is a discussion on Need help discovering disk-size within the C++ Programming forums, part of the General Programming Boards category; I know windows has a way of discovering disk-size of a share over a network , so it has to ...

  1. #1
    Unregistered
    Guest

    Need help discovering disk-size

    I know windows has a way of discovering disk-size of a share over a network, so it has to be accessible somehow to other programs, right? Does anyone know how I might go about calling this information? I'm in charge of designing a short C++ prog that reports the status of 14 servers in the mornings including space used/space available. I obviously can't pull a dir /s and use the information at the end because having it list our directory entire structure would take forever(and the load would be bad). Is there some way to get this information? Any dos commands even?

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    You could try the API function GetDiskFreeSpaceEx()
    zen

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. size of array
    By goran00 in forum C Programming
    Replies: 38
    Last Post: 04-02-2008, 10:57 AM
  2. Heapsort
    By xENGINEERx in forum C Programming
    Replies: 2
    Last Post: 03-30-2008, 08:17 PM
  3. Generic heapsort
    By Sephiroth1109 in forum C Programming
    Replies: 15
    Last Post: 12-07-2007, 06:14 PM
  4. An exercise in optimization
    By Prelude in forum Contests Board
    Replies: 10
    Last Post: 04-29-2005, 04:06 PM
  5. getting disk size information
    By Turek in forum C++ Programming
    Replies: 5
    Last Post: 07-31-2002, 03:52 AM

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