Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Get Files list from Remote server in a Directory

Get Files list from Remote server in a Directory

Scheduled Pinned Locked Moved C#
csharpsysadminhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kumaran21cen
    wrote on last edited by
    #1

    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

    R B 2 Replies Last reply
    0
    • K Kumaran21cen

      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

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      AFAIK, Directory.GetFiles() only supports the file:// protocol. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      1 Reply Last reply
      0
      • K Kumaran21cen

        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

        B Offline
        B Offline
        Bert delaVega
        wrote on last edited by
        #3

        System.IO is managing local resources. Check out the System.Web or System.Net namespaces.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups