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. Listing files&folders on a server

Listing files&folders on a server

Scheduled Pinned Locked Moved C#
questioncsharpsysadminalgorithms
8 Posts 2 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.
  • C Offline
    C Offline
    CWIZO
    wrote on last edited by
    #1

    Hi, I would like to get a list of files and folders on a specific URL. How can I do that? I am searching for something like DirectoryInfo and FileInfo (thees two classes can onyl work with local files&folders aparently). Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

    M 2 Replies Last reply
    0
    • C CWIZO

      Hi, I would like to get a list of files and folders on a specific URL. How can I do that? I am searching for something like DirectoryInfo and FileInfo (thees two classes can onyl work with local files&folders aparently). Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Have yu try to give server name in your path? In addition to that check this article, you can do it with WMI too: Windows Management Instrumentation (WMI) Implementation [^] Mazy You're face to face, With the man who sold the world - David Bowie

      C 1 Reply Last reply
      0
      • M Mazdak

        Have yu try to give server name in your path? In addition to that check this article, you can do it with WMI too: Windows Management Instrumentation (WMI) Implementation [^] Mazy You're face to face, With the man who sold the world - David Bowie

        C Offline
        C Offline
        CWIZO
        wrote on last edited by
        #3

        I tryed passing an URL to the constructor, but it says that URLs are not suported ... I checked this article and I can't find anything about getting a list of files from a URL ... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

        M 1 Reply Last reply
        0
        • C CWIZO

          I tryed passing an URL to the constructor, but it says that URLs are not suported ... I checked this article and I can't find anything about getting a list of files from a URL ... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          CWIZO wrote: I checked this article and I can't find anything about getting a list of files from a URL ... Look at the picture of article, it gets IP address with username and password. And in the tab of sample application ,you will see MY EXPLORER . So isn't it what you want? Mazy You're face to face, With the man who sold the world - David Bowie

          1 Reply Last reply
          0
          • C CWIZO

            Hi, I would like to get a list of files and folders on a specific URL. How can I do that? I am searching for something like DirectoryInfo and FileInfo (thees two classes can onyl work with local files&folders aparently). Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

            M Offline
            M Offline
            Mazdak
            wrote on last edited by
            #5

            By the way, if it doesn't help,you can use remotng to run a application on server to respond to your application and send information you need. Mazy You're face to face, With the man who sold the world - David Bowie

            C 1 Reply Last reply
            0
            • M Mazdak

              By the way, if it doesn't help,you can use remotng to run a application on server to respond to your application and send information you need. Mazy You're face to face, With the man who sold the world - David Bowie

              C Offline
              C Offline
              CWIZO
              wrote on last edited by
              #6

              The problem is that the server is "random". It can be any server. So I can't have autherication or something. Im building something like a spider, that would grab images from a server for instance (no I am not making a pr0n downloader :) ). Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

              M 1 Reply Last reply
              0
              • C CWIZO

                The problem is that the server is "random". It can be any server. So I can't have autherication or something. Im building something like a spider, that would grab images from a server for instance (no I am not making a pr0n downloader :) ). Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

                M Offline
                M Offline
                Mazdak
                wrote on last edited by
                #7

                CWIZO wrote: So I can't have autherication or something. You missed some point , there is something called security,unless you wanna do hacking. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

                C 1 Reply Last reply
                0
                • M Mazdak

                  CWIZO wrote: So I can't have autherication or something. You missed some point , there is something called security,unless you wanna do hacking. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

                  C Offline
                  C Offline
                  CWIZO
                  wrote on last edited by
                  #8

                  To demonstrate what I'm trying to achive please download&install this programm: http://sbl.net/Downloads/BlackWidow Setup.exe it is called Black Widow, you just type in a URL, and the program generates a structure of files and folders. And if files are accessible (like images, or html files) you can download them. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

                  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