Hi,
Does anyone know how to get a list of files for a given directory from a
given url.
I have the following, but get an error indicating that URI formats are not
supported.
System.IO.Direc toryInfo di
di = new System.IO.Direc toryInfo("http://www.websitehere .com/files/");
System.IO.FileI nfo[] rgFiles = di.GetFiles("*. jpg");
foreach(System. IO.FileInfo fi in rgFiles)
{
MessageBox.Show (fi.Name);
}
Is there a way of doing this without ftp?
Does anyone know how to get a list of files for a given directory from a
given url.
I have the following, but get an error indicating that URI formats are not
supported.
System.IO.Direc toryInfo di
di = new System.IO.Direc toryInfo("http://www.websitehere .com/files/");
System.IO.FileI nfo[] rgFiles = di.GetFiles("*. jpg");
foreach(System. IO.FileInfo fi in rgFiles)
{
MessageBox.Show (fi.Name);
}
Is there a way of doing this without ftp?
Comment