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