|
Prev: Create image file and add to the image other files like in DVD bur
Next: Customdraw CListCtrl with WM_MEASUREITEM <d44c3b6d-f806-4d01-944a-238a07ecef06@a5g2000prg.googlegroups.com>
From: zack on 22 May 2008 08:24 I would like to get Folder size, i opened folder browse window with CFolderDialog class but now i have to get the size of the folder, i can't find the folder size parameter in the class. Do you know if i have this value of folder size like i have in CFile class? if i don't have how can i calculate it and maybe an example code ? anther issue is what class handle copying file and folders to SD card(it doesn't realy mothers from windows point of view,it is just anther path)? zack
From: Victor on 22 May 2008 08:44 You should recursively enum (CFileFind class) all files in folder/subfolders and calculate their summary size. Victor "zack" wrote: > I would like to get Folder size, i opened folder browse window with > CFolderDialog class but now i have to get the size of the folder, i can't > find the folder size parameter in the class. > Do you know if i have this value of folder size like i have in CFile class? > if i don't have how can i calculate it and maybe an example code ? > > anther issue is what class handle copying file and folders to SD card(it > doesn't realy mothers from windows point of view,it is just anther path)? > > zack
From: Joseph M. Newcomer on 22 May 2008 09:23 Folders don't have sizes. joe On Thu, 22 May 2008 05:24:00 -0700, zack <zack(a)discussions.microsoft.com> wrote: >I would like to get Folder size, i opened folder browse window with >CFolderDialog class but now i have to get the size of the folder, i can't >find the folder size parameter in the class. >Do you know if i have this value of folder size like i have in CFile class? >if i don't have how can i calculate it and maybe an example code ? > >anther issue is what class handle copying file and folders to SD card(it >doesn't realy mothers from windows point of view,it is just anther path)? > >zack Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Victor on 22 May 2008 09:43 Good point! :) Well. I thought OP meant the size_of_all_files in_the_folder... (?) Victor "Joseph M. Newcomer" wrote: > Folders don't have sizes. > joe > > On Thu, 22 May 2008 05:24:00 -0700, zack <zack(a)discussions.microsoft.com> wrote: > > >I would like to get Folder size, i opened folder browse window with > >CFolderDialog class but now i have to get the size of the folder, i can't > >find the folder size parameter in the class. > >Do you know if i have this value of folder size like i have in CFile class? > >if i don't have how can i calculate it and maybe an example code ? > > > >anther issue is what class handle copying file and folders to SD card(it > >doesn't realy mothers from windows point of view,it is just anther path)? > > > >zack > Joseph M. Newcomer [MVP] > email: newcomer(a)flounder.com > Web: http://www.flounder.com > MVP Tips: http://www.flounder.com/mvp_tips.htm >
From: Joseph M. Newcomer on 22 May 2008 12:11
Yes, I see your answer. But then the OP would have asked about getting the sum of all the files in the folder (and perhaps subfolders?). joe On Thu, 22 May 2008 06:43:02 -0700, Victor <Victor(a)discussions.microsoft.com> wrote: >Good point! :) >Well. I thought OP meant the size_of_all_files in_the_folder... (?) > >Victor > >"Joseph M. Newcomer" wrote: > >> Folders don't have sizes. >> joe >> >> On Thu, 22 May 2008 05:24:00 -0700, zack <zack(a)discussions.microsoft.com> wrote: >> >> >I would like to get Folder size, i opened folder browse window with >> >CFolderDialog class but now i have to get the size of the folder, i can't >> >find the folder size parameter in the class. >> >Do you know if i have this value of folder size like i have in CFile class? >> >if i don't have how can i calculate it and maybe an example code ? >> > >> >anther issue is what class handle copying file and folders to SD card(it >> >doesn't realy mothers from windows point of view,it is just anther path)? >> > >> >zack >> Joseph M. Newcomer [MVP] >> email: newcomer(a)flounder.com >> Web: http://www.flounder.com >> MVP Tips: http://www.flounder.com/mvp_tips.htm >> Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm |