| | |
Need help manipulating files/directories
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Jun 2003
Posts: 8
Reputation:
Solved Threads: 0
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
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
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.
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.
![]() |
Similar Threads
Other Threads in the C# Forum
- Previous Thread: Printing a textbox?
- Next Thread: Opensource IDE
| Thread Tools | Search this Thread |
.net access algorithm animation array bitmap box c# check checkbox client combobox control conversion csharp customactiondata database datagrid datagridview dataset datastructure date/time datetime datetimepicker degrees directrobot dll draganddrop drawing encryption enum excel file filename files form format forms function gdi+ gis gtk hash image input install java label list mandelbrot math mouseclick mp3 mysql native operator outlook2003 packaging path photoshop picturebox pixelinversion pixelminversion post print process programming radians regex remoting richtextbox safari server sleep snooze socket sql statistics string table tables tcp text textbox thread time timer treeview update usercontrol usercontrols validation visualstudio webbrowser webcam wfa wia winforms wpf xml





