I want to read all the files in a folder (all of extention .zip) and list them all within a listview. I have the listview and header set up (I done the hard part :P).
Thanks for any help.
Printable View
I want to read all the files in a folder (all of extention .zip) and list them all within a listview. I have the listview and header set up (I done the hard part :P).
Thanks for any help.
this might help
PHP Code:public void LoadDirectoryFiles(string targetDir)
{
System.IO.DirectoryInfo dr = new System.IO.DirectoryInfo(targetDir);
FileInfo[] fi = dr.GetFiles();
foreach(FileInfo f in fi)
{
//ADD UR LISTVIEW name here.
}
}
private void button1_Click(object sender, System.EventArgs e)
{
LoadDirectoryFiles(@"e:\");
}