G
Guest
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.DirectoryInfo di
di = new System.IO.DirectoryInfo("http://www.websitehere.com/files/");
System.IO.FileInfo[] 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.DirectoryInfo di
di = new System.IO.DirectoryInfo("http://www.websitehere.com/files/");
System.IO.FileInfo[] rgFiles = di.GetFiles("*.jpg");
foreach(System.IO.FileInfo fi in rgFiles)
{
MessageBox.Show (fi.Name);
}
Is there a way of doing this without ftp?