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. Retrieve and display server drives and folders on a client.

Retrieve and display server drives and folders on a client.

Scheduled Pinned Locked Moved C#
csharpwcfsysadminhelpquestion
2 Posts 1 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
    Calla
    wrote on last edited by
    #1

    My client application and server application runs on two different machines (client app is a WinForm and server app a WCF service). In the client app, the user needs to point out a location on the server [e.g. D:\SomeFolder or C:\SomeFolder\SomeOtherFolder]. These are not shared folders. The best way would be if I could show a FolderBrowserDialog on the client displaying the server's Desktop, local drives, mapped drives etc. just like it would display those items from the local machine. I've been stuck with this for a couple of days now, unable to find a good solution, so I thought I'd check if anyone here knows how this could be achieved. In a desperate attempt I even tried to let the service return a FolderBrowserDialog (created on the server) and then called the .ShowDialog() method on the client side - but that only showed the local Desktop, drives, folders etc.. Does anyone have any good pointers? I could of course have the server return its drives and when the user selects a drive show the folders and then when the user picks a folder show that folder's subfolders and so on, but before I do I want to check if there is an easier way (why reinvent the wheel, right?).

    C 1 Reply Last reply
    0
    • C Calla

      My client application and server application runs on two different machines (client app is a WinForm and server app a WCF service). In the client app, the user needs to point out a location on the server [e.g. D:\SomeFolder or C:\SomeFolder\SomeOtherFolder]. These are not shared folders. The best way would be if I could show a FolderBrowserDialog on the client displaying the server's Desktop, local drives, mapped drives etc. just like it would display those items from the local machine. I've been stuck with this for a couple of days now, unable to find a good solution, so I thought I'd check if anyone here knows how this could be achieved. In a desperate attempt I even tried to let the service return a FolderBrowserDialog (created on the server) and then called the .ShowDialog() method on the client side - but that only showed the local Desktop, drives, folders etc.. Does anyone have any good pointers? I could of course have the server return its drives and when the user selects a drive show the folders and then when the user picks a folder show that folder's subfolders and so on, but before I do I want to check if there is an easier way (why reinvent the wheel, right?).

      C Offline
      C Offline
      Calla
      wrote on last edited by
      #2

      I'm just gonna write my own. It won't take too long :)

      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