How to get local disk used space

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2009
Posts: 6
Reputation: macla is an unknown quantity at this point 
Solved Threads: 0
macla macla is offline Offline
Newbie Poster

How to get local disk used space

 
0
  #1
Jul 15th, 2009
Hi

How to get local disk ( c:\ or d:\ ) used space in windows.
Any API ?
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 678
Reputation: Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold 
Solved Threads: 101
Sky Diploma's Avatar
Sky Diploma Sky Diploma is offline Offline
Practically a Master Poster

Re: How to get local disk used space

 
0
  #2
Jul 15th, 2009
http://www.computing.net/answers/pro...n32/10516.html

Googling would have helped you get the answer lot faster as this was the first on my google results.
1. Please Mark Your Thread as Solved After Getting Your Answers.
2. Please Use CODE TAGS .
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: How to get local disk used space

 
0
  #3
Jul 15th, 2009
To the OP: in case you're copying the whole thing (look at Sky Diploma's post, code mentioned in the link), then don't forget to change void main() to int main()

And:
  1. #include <iostream.h>
  2. #include <iomanip.h>
  3. #include <string.h>
to:
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cstring>

Last edited by tux4life; Jul 15th, 2009 at 12:17 pm.
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC