Get Files list from Remote server in a Directory
-
Hi all I need to get list of files in the remote directory in C#.NET, its a windows based application. eg: http://192.168.1.65/project1/directory/ URL = http://192.168.1.65/project1/directory I tried in System.IO.Directory.GetFiles(URL), but it throws an error "URI format is not supported" please tell me if anybody knows
Thanks & Regards Kumaran
-
Hi all I need to get list of files in the remote directory in C#.NET, its a windows based application. eg: http://192.168.1.65/project1/directory/ URL = http://192.168.1.65/project1/directory I tried in System.IO.Directory.GetFiles(URL), but it throws an error "URI format is not supported" please tell me if anybody knows
Thanks & Regards Kumaran
AFAIK,
Directory.GetFiles()
only supports thefile://
protocol. /raviMy new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Hi all I need to get list of files in the remote directory in C#.NET, its a windows based application. eg: http://192.168.1.65/project1/directory/ URL = http://192.168.1.65/project1/directory I tried in System.IO.Directory.GetFiles(URL), but it throws an error "URI format is not supported" please tell me if anybody knows
Thanks & Regards Kumaran
System.IO is managing local resources. Check out the System.Web or System.Net namespaces.