Need help manipulating files/directories

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2003
Posts: 8
Reputation: radioman28 is an unknown quantity at this point 
Solved Threads: 0
radioman28 radioman28 is offline Offline
Newbie Poster

Need help manipulating files/directories

 
0
  #1
Oct 24th, 2004
Hi,

I am thinking about writing a program to compare MP3's in different directories that will compare file size, ID3 tags, bit rate etc. I want to be able to search the computer for MP3 files, then list them in a rich text box like you would see in windows explorer, showing duplicate files in another rich text box and be able to compare them. I quite haven't got to file manipulation in my C# class, I have already taken C++.
I also want to be able to select a file listed in the rich text box and get further info. I have read so far that I could possible use a FileInfo object to represent a file. How would I attemp to search the computer for them? As I find the files would I put them into a FileInfo Array? How would I get them to display in the Rich Text Box or any better alternative?
Not looking for somebody to do it for me, just give me some ideas/direction as I've never done this type of thing in Windows Forms/C# programming.

Thanks

Josh
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4
Reputation: Crescent Cross is an unknown quantity at this point 
Solved Threads: 0
Crescent Cross's Avatar
Crescent Cross Crescent Cross is offline Offline
Newbie Poster

Re: Need help manipulating files/directories

 
0
  #2
Dec 16th, 2004
I wouldn't know how to compare the files, but I suggest maybe using a ListBox instead of a RichTextBox?
Also, back in VB6, if you wanted to scan a whole drive or something, I would use a For statement for each directory, and for each directory in that directory, and so on. Picking up mp3 files while scanning could be done by an If CurrentFile = Right$(".mp3").
Maybe this could be done in C#? I'm quite sure the substring() could be used to replace the Right$(). I don't know about the DirectoryList (it was a component in VB6).

I hope I helped a bit.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 7
Reputation: SethWebster is an unknown quantity at this point 
Solved Threads: 0
SethWebster SethWebster is offline Offline
Newbie Poster

Re: Need help manipulating files/directories

 
0
  #3
Apr 14th, 2005
.NET has a nice set of File/Directory manipulation classes built right in. Check out the System.IO namespace.

Seth Webster
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC