Click here to Skip to main content
16,006,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalclipboard Pin
Stirfie2-Apr-05 1:50
Stirfie2-Apr-05 1:50 
GeneralRe: clipboard Pin
Tareq Ahmed Siraj2-Apr-05 5:25
Tareq Ahmed Siraj2-Apr-05 5:25 
GeneralRe: clipboard Pin
Stirfie4-Apr-05 1:19
Stirfie4-Apr-05 1:19 
GeneralRe: clipboard Pin
David Crow4-Apr-05 3:24
David Crow4-Apr-05 3:24 
GeneralRe: clipboard Pin
Tareq Ahmed Siraj4-Apr-05 19:48
Tareq Ahmed Siraj4-Apr-05 19:48 
GeneralRe: clipboard Pin
Stirfie4-Apr-05 23:09
Stirfie4-Apr-05 23:09 
GeneralSolution Explorer Pin
NewbieStats1-Apr-05 23:40
NewbieStats1-Apr-05 23:40 
GeneralTo find used space in folders or path without searching files Pin
inbakumar.G1-Apr-05 23:18
inbakumar.G1-Apr-05 23:18 
Hi,

I want to calculate the used disk space for a particular folder or the given path. In my knowledge two API's avilable in VC++.

1. GetDiskFreeSpaceEx
2. using LPWIN32_FIND_DATA (FindFirstFile, FindNextFile)

if we use GetDiskFreeSpaceEx, it gives the root directory space only.
Suppose i want to calculate the used space in F:\xx\yy\zz means i have to use
recursive search for all the subfolders using FindFirstFile, FindNextFile and calculate the used space using LPWIN32_FIND_DATA structure. It takes more time.

Is there any other option avilable to get the directory space immediately.

Like Any Folder -> Right click -> Properties --- The windows give quick result. Windows also using some searching concept but they done quickly, I think they updated the information every time somewhere it may be registry or Shell.

Is anybody having any idea about ... plz write...........

Your valuable suggestions are always welcome ......

Regards,
inbha.

Cool | :cool:
Generalhelp Pin
stammer1-Apr-05 23:04
stammer1-Apr-05 23:04 
GeneralRe: help Pin
Alexander M.,2-Apr-05 3:11
Alexander M.,2-Apr-05 3:11 
GeneralRe: help Pin
stammer2-Apr-05 14:07
stammer2-Apr-05 14:07 
GeneralRe: help Pin
ThatsAlok2-Apr-05 18:11
ThatsAlok2-Apr-05 18:11 
GeneralRe: help Pin
stammer3-Apr-05 13:53
stammer3-Apr-05 13:53 
GeneralRe: help Pin
Christian Graus2-Apr-05 10:35
protectorChristian Graus2-Apr-05 10:35 
GeneralRe: help Pin
stammer2-Apr-05 14:14
stammer2-Apr-05 14:14 
GeneralRe: help Pin
Christian Graus3-Apr-05 12:51
protectorChristian Graus3-Apr-05 12:51 
GeneralRe: help Pin
stammer3-Apr-05 14:12
stammer3-Apr-05 14:12 
GeneralRe: help Pin
Christian Graus3-Apr-05 14:16
protectorChristian Graus3-Apr-05 14:16 
GeneralRe: help Pin
stammer3-Apr-05 14:40
stammer3-Apr-05 14:40 
GeneralRe: help Pin
Christian Graus3-Apr-05 15:26
protectorChristian Graus3-Apr-05 15:26 
GeneralRe: help Pin
FlyingTinman4-Apr-05 12:41
FlyingTinman4-Apr-05 12:41 
Generaldelayus in VC++ Pin
binh.pham1-Apr-05 20:09
binh.pham1-Apr-05 20:09 
GeneralRe: delayus in VC++ Pin
ThatsAlok1-Apr-05 21:43
ThatsAlok1-Apr-05 21:43 
QuestionNeed info about CxImage How to download it??? Pin
awasthy1-Apr-05 16:52
awasthy1-Apr-05 16:52 
AnswerRe: Need info about CxImage How to download it??? Pin
ThatsAlok1-Apr-05 18:10
ThatsAlok1-Apr-05 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.