| | |
Need help manipulating files/directories
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
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 api array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql mysql.data.client operator path photoshop php picturebox pixelinversion platform post programming radians regex remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml





