Click here to Skip to main content
16,018,418 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why I hate C# Pin
Judah Gabriel Himango28-Nov-07 15:27
sponsorJudah Gabriel Himango28-Nov-07 15:27 
AnswerRe: Why I hate C# Pin
PIEBALDconsult28-Nov-07 14:50
mvePIEBALDconsult28-Nov-07 14:50 
GeneralRe: Why I hate C# Pin
Skippums29-Nov-07 4:13
Skippums29-Nov-07 4:13 
GeneralRe: Why I hate C# Pin
PIEBALDconsult29-Nov-07 5:00
mvePIEBALDconsult29-Nov-07 5:00 
GeneralRe: Why I hate C# Pin
Skippums29-Nov-07 5:03
Skippums29-Nov-07 5:03 
AnswerRe: Why I hate C# Pin
Bino B28-Nov-07 15:39
Bino B28-Nov-07 15:39 
AnswerRe: Why I hate C# Pin
Skippums29-Nov-07 4:10
Skippums29-Nov-07 4:10 
QuestionGetting the names of files have extension of mp3 from filesystem?? Pin
omegazafer28-Nov-07 11:57
omegazafer28-Nov-07 11:57 
hi,
How can I get all names of files which have extension of mp3 from filesystem (c:\ part of computer for example). I can get only the names of files with extension of mp3 in only one folder by using beloved code. By this code,I can't get, if there are mp3 files in subfolders, but I want to get all mp3 files' names under c:\ part of computer.
private void button1_Click(object sender, EventArgs e)
{
System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(@"C:\");
System.IO.FileSystemInfo[] fi = di.GetFileSystemInfos();
foreach (System.IO.FileSystemInfo f in fi)
{
if (f.Extension==".mp3")
{
richTextBox1.Text += f.Name;
richTextBox1.Text += Environment.NewLine;
}

}

richTextBox1.SaveFile(@"C:\mp3ler.xls",RichTextBoxStreamType.PlainText);
}
AnswerRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Anthony Mushrow28-Nov-07 12:10
professionalAnthony Mushrow28-Nov-07 12:10 
GeneralRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Jared Bienz [MSFT]28-Nov-07 12:33
Jared Bienz [MSFT]28-Nov-07 12:33 
AnswerRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Skippums28-Nov-07 12:22
Skippums28-Nov-07 12:22 
GeneralRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Anthony Mushrow28-Nov-07 12:26
professionalAnthony Mushrow28-Nov-07 12:26 
AnswerRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Luc Pattyn28-Nov-07 12:28
sitebuilderLuc Pattyn28-Nov-07 12:28 
GeneralRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Jared Bienz [MSFT]28-Nov-07 12:36
Jared Bienz [MSFT]28-Nov-07 12:36 
GeneralRe: Getting the names of files have extension of mp3 from filesystem?? Pin
Luc Pattyn28-Nov-07 21:50
sitebuilderLuc Pattyn28-Nov-07 21:50 
AnswerRe: Getting the names of files have extension of mp3 from filesystem?? Pin
omegazafer28-Nov-07 12:41
omegazafer28-Nov-07 12:41 
QuestionIdentifier Expected Pin
murtle328-Nov-07 11:31
murtle328-Nov-07 11:31 
AnswerRe: Identifier Expected Pin
Luc Pattyn28-Nov-07 11:38
sitebuilderLuc Pattyn28-Nov-07 11:38 
GeneralRe: Identifier Expected Pin
murtle328-Nov-07 12:00
murtle328-Nov-07 12:00 
GeneralRe: Identifier Expected Pin
Luc Pattyn28-Nov-07 12:21
sitebuilderLuc Pattyn28-Nov-07 12:21 
AnswerRe: Identifier Expected Pin
Jared Bienz [MSFT]28-Nov-07 12:08
Jared Bienz [MSFT]28-Nov-07 12:08 
GeneralRe: Identifier Expected Pin
murtle328-Nov-07 12:16
murtle328-Nov-07 12:16 
GeneralRe: Identifier Expected Pin
Jared Bienz [MSFT]28-Nov-07 12:19
Jared Bienz [MSFT]28-Nov-07 12:19 
JokeRe: Identifier Expected Pin
Pete O'Hanlon28-Nov-07 22:16
mvePete O'Hanlon28-Nov-07 22:16 
GeneralRe: Identifier Expected Pin
Luc Pattyn28-Nov-07 22:40
sitebuilderLuc Pattyn28-Nov-07 22:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.