PC Review


Reply
Thread Tools Rate Thread

Determing folder size using c# (perfomance)

 
 
Alhambra Eidos Desarrollo
Guest
Posts: n/a
 
      21st Oct 2008
Hi all

how can I get folder size with high performance ??

Do I need use recursive method for all files-subfolders within root folder
?? Anyway for do it ?? Perhaps using API Windows ??

Thanks in advance ?

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.com/churrosoft
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

 
Reply With Quote
 
 
 
 
rhaazy
Guest
Posts: n/a
 
      21st Oct 2008
On Oct 21, 9:18*am, Alhambra Eidos Desarrollo
<AlhambraEidosDesarro...@discussions.microsoft.com> wrote:
> Hi all
>
> how can I get folder size with high performance ??
>
> Do I need use recursive method for all files-subfolders within root folder
> ?? Anyway for do it ?? Perhaps using API Windows ??
>
> Thanks in advance ?
>
> --http://www.alhambra-eidos.es/web2005/index.htmlwww.kiquenet.com/churrosofthttp://www.setbb.com/putainformatica/viewtopic.php?p=843www.trabajobasura.com/solusoft

go to google and search for "c# folder size"
 
Reply With Quote
 
Alhambra Eidos Desarrollo
Guest
Posts: n/a
 
      21st Oct 2008
Any sample that I found using recursive method. Another solution for high
performance ?

Thanks in advance
 
Reply With Quote
 
Peter Morris
Guest
Posts: n/a
 
      21st Oct 2008
If there was an API to show the value immediately I suspect that
right-clicking c:\Windows and then going to properties would be much quicker
to show the folder size.



--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

 
Reply With Quote
 
Ben Voigt [C++ MVP]
Guest
Posts: n/a
 
      21st Oct 2008
Alhambra Eidos Desarrollo wrote:
> Any sample that I found using recursive method. Another solution for
> high performance ?


Any correct solution will use recursion, however the naive solution using
recursion and .NET functions is not correct because it doesn't include the
sizes of alternate data streams and indexes.

>
> Thanks in advance



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
determing file size of Bitmap object without saving it... buu Microsoft Dot NET Framework 1 28th Apr 2008 12:20 PM
Determing the current selection in Outlook (Folder or Mail) =?Utf-8?B?UmVuaml0aA==?= Microsoft Outlook Discussion 0 5th Jun 2006 07:31 AM
Determing the folder of compiled dll. Edwin Knoppert Microsoft ASP .NET 4 10th Jan 2006 05:28 PM
determing folder path James Microsoft Outlook Form Programming 1 2nd Apr 2004 04:29 PM
Determing and ASPX's Page size (content Length) SamIAm Microsoft C# .NET 0 10th Feb 2004 10:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:50 AM.