473,396 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Logic advice requested.

I am new to C# and developing in general. During my studies I got an idea
for a program that would basically be Windows Explorer with the added
ability to show the size of each and every folder and everything below it in
the tree.

A week or so later I happened across a program called Disktective at
www.freebyte.com that did almost exactly what I wanted. Here is a
screenshot: http://www.freebyte.com/disktective/screen12.png.

Even though I found this very nice program that does what I needed I decided
to continue with my project.

I've coded enough to make an explorer like program that just added nodes to
a treeview control with all of the logical drives and subfolders on the
system.

The part that eludes me is the logic to make all of the calculations and
store the data.

Can anyone offer any suggestions?

Thanks in advance and sorry for the rambling.

Ty Moffett
Nov 16 '05 #1
2 852
There is a good example of how to go through folders and recurse through file and sub-directories here

http://msdn.microsoft.com/library/en...oriestopic1.as

Interms of storing the totaled directory sizes, you can create a temp hidden file that your application can use ans store it in each folder. Only prob with this is how do you track when new files and folders have been added or deleted

Rasika
Nov 16 '05 #2
There is a good example of how to go through folders and recurse through file and sub-directories here

http://msdn.microsoft.com/library/en...oriestopic1.as

Interms of storing the totaled directory sizes, you can create a temp hidden file that your application can use ans store it in each folder. Only prob with this is how do you track when new files and folders have been added or deleted

Rasika
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ty Moffett | last post by:
I am new to C# and developing in general. During my studies I got an idea for a program that would basically be Windows Explorer with the added ability to show the size of each and every folder...
2
by: Ty Moffett | last post by:
I am new to C# and developing in general. During my studies I got an idea for a program that would basically be Windows Explorer with the added ability to show the size of each and every folder...
0
by: Ty Moffett | last post by:
I am new to C# and developing in general. During my studies I got an idea for a program that would basically be Windows Explorer with the added ability to show the size of each and every folder...
0
by: Wim Vanhoof | last post by:
----------------------------------------------------------- WLPE' 06 - CALL FOR PAPERS Workshop on Logic-based Methods in Programming Environments (satellite workshop of ICLP’06) August...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.