writing an open source app : GUI for x:\Dir/s *.*>File.txt

jxharding

Expert Member
Joined
May 4, 2006
Messages
1,629
Reaction score
3
I want to develop a small app, and then post it somewhere like sourceforge.

I often use this command to see what is on a drive (be it a removable drive or not)
x:\Dir/s *.*>File.txt (the friend will then send me the file and i can see what is on the drive)

but this is a schlep going through the text file.
so the idea is to write an app taking a Textfile as input, and presenting it folder wise like in Explorer.

e.g.
Directory of G:\

2012/01/11 06:10 PM <DIR> Videos
2012/01/11 06:04 PM <DIR> Pictures


Directory of G:\Videos

2012/01/11 06:10 PM <DIR> .
2012/01/11 06:10 PM <DIR> ..
2011/12/16 01:55 AM <DIR> March 2011
2012/01/11 06:11 PM <DIR> April 2011
2011/12/16 11:03 AM <DIR> TV

Directory of G:\Videos\March 2011


2011/12/16 12:40 AM <DIR> .
2011/12/16 12:40 AM <DIR> ..
2011/12/16 12:36 AM <DIR> 1.mpg
2011/12/16 12:37 AM <DIR> 2.mpg



Shouldn't be to difficult should it?
Treeview in C#
build an arraylist of folders, create a treeview for each folder, and nodes for each file in that folder


any thoughts/ ideas?

Was wondering if i could do this in Java as an introduction app into java coding, would it be too advanced?
something like advanced disc catalogue, just not advanced at all
http://www.google.co.za/imgres?q=ad...tart=0&ndsp=22&ved=1t:429,r:1,s:0&tx=59&ty=66
 
Some good ideas, would actually be a schlep to write this now that i think of it,

The command dir *.* /OG /S is handy, looks like it sortes the folders to be together,but still a lot of files to go through even if sorted as the output is almost hte same.

So how advanced would this be in Java, possible as a pet project?

Would the Regex be used to identify folder names? or am i missing something obvious for regex?
 
Not sure why you say it would be a schlep to write this.

In VS C# its easy to list all folders in a treeview and then have a panel on the right that contains all files in the folder currently selected.
You can easily list all files in the folder and its sub folders as well.

Should not even take an hour to write.
 
Top
Sign up to the MyBroadband newsletter
X