using System.IO;
....
public void test(string strPath)
{
if (Directory.Exists(strPath))
{
foreach (string s in Directory.GetFiles(strPath))
{
MessageBox.Show(s);
}
}
}
Look at the Directory class in the online help to learn more.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.