X
Xarky
Hi,
I am trying to show files of type mp3 or wma or of type both. To
show either of mp3 or wma I am doing as follows(choosing file type by
a radio button),
DirectoryInfo currentDir = new DirectoryInfo(path + "\\");
FileInfo[] allFiles;
if (MP3s.Checked == true)
allFiles = currentDir.GetFiles("*.mp3");
else if (WMAs.Checked == true)
allFiles = currentDir.GetFiles("*.wma");
else // must be both WMA and MP3
{
} // end else
Can someone tell me how to to it.
Thanks in Advance
I am trying to show files of type mp3 or wma or of type both. To
show either of mp3 or wma I am doing as follows(choosing file type by
a radio button),
DirectoryInfo currentDir = new DirectoryInfo(path + "\\");
FileInfo[] allFiles;
if (MP3s.Checked == true)
allFiles = currentDir.GetFiles("*.mp3");
else if (WMAs.Checked == true)
allFiles = currentDir.GetFiles("*.wma");
else // must be both WMA and MP3
{
} // end else
Can someone tell me how to to it.
Thanks in Advance