locked
Remote Desktop App and Windows Explorer RRS feed

  • Question

  • Hello, I have an application that my users run from a remote desktop app server. I allow the users to attach files to the application.

    The problem is, they connect a usb device to the local computer.  When they run my application, the "local" drives show, but are the drives on the RDP Server, and the Local computers show up as network drives.  Seems simple enough to figure out, however, I have users that don't understand that concept and they are looking for the USB device name and icon on either D or E or F drive.

    What I am trying to figure out is how to open windows explorer with just the actual local computer drives being displayed.  What would be even better is if I could do something like when the usb device is added.. open windows explorer right to the usb device just connected.

    Any help or idea?

    Saturday, February 20, 2016 8:54 AM

Answers

  • Remote Desktop - Server-Client

    Opening certain programs on the client from the server"

    http://www.a1vbcode.com/app-5286.asp

    Maybe, you can pillage and plunder the code to do what you need, which would be to go back to the client machine and do simething

    Saturday, February 20, 2016 8:22 PM

All replies

  • The best  you can do is what is being shown to you in the Google link, which is make your own.

    https://www.google.com/#q=how+to+program+file+explorer+vb.net

    Saturday, February 20, 2016 2:10 PM
  • In order to detect the added drives, consider RegisterDeviceNotification and the WM_DEVICECHANGE message. These system operations can be done in VB.NET too: http://www.bing.com/search?q=RegisterDeviceNotification+vb.net

    The simplest methods to open File Explorer:

        Process.Start( "X:" )

    or

        Process.Start( "explorer.exe", "/root,X:" )

    where X is the drive letter. See also the command lines: https://support.microsoft.com/en-us/kb/130510


    • Edited by Viorel_MVP Saturday, February 20, 2016 2:43 PM
    Saturday, February 20, 2016 2:41 PM
  • Not real something you can do with VB if you cannot do that by hand. 

    Therefore more a Technet question for System Admins.

    http://technet.microsoft.com/forums


    Success
    Cor

    Saturday, February 20, 2016 3:53 PM
  • Thanks for your input,  but running the application on the Remote Desktop App Server, the app thinks the local drives are the ones from the App Server. What I need to figure out how to do, is find the local drives where the remote app was launched from. For example,

    Remote Desktop Server name is AppServ 

    user launches IE and logs into the application server from the desktop named "User1".  When the user opens the application from the app server, and hits the button to open the folder structure, it shows the local drives of "AppServ", I need to be able to show the local drives from "User1"

    Saturday, February 20, 2016 7:44 PM
  • Thanks, if the application is launched from the app server, how can I get the wm_devicechange from the local machine?

    Saturday, February 20, 2016 7:45 PM
  • Remote Desktop - Server-Client

    Opening certain programs on the client from the server"

    http://www.a1vbcode.com/app-5286.asp

    Maybe, you can pillage and plunder the code to do what you need, which would be to go back to the client machine and do simething

    Saturday, February 20, 2016 8:22 PM