hai,
i am developing an application to copy files and folders in my system to a remote system.For that i need to display the all the files and folders at the form load event.Is there any way to display the folder list?
waiting for suggestion..
thanks
AnujaPosted Dec 18, 2007, 7:24 AM
{
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo("Path of folder");
foreach (System.IO.FileInfo f in dir.GetFiles("*.*")) {
lstFiles.Items.Add(f.Name);
}
}
Blocked AccountPosted Dec 18, 2007, 12:26 AM
Visit this url.
http://www.codeguru.com/forum/archive/index.php/t-417770.html
I hope this will help you.