• Network drives in DrivelistBox.

    From bertdongen@gmail.com@21:1/5 to All on Mon Mar 28 06:02:17 2016
    Hi all.

    Networkdrives are not displayed in my DrivelistBox.
    I googled a lot, but did not find a way to get them displayed.
    Not even drives with a driveletter.
    Guess that there is NO solution to this. Or is there?
    Bert.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tim Rude@21:1/5 to bertdongen@gmail.com on Mon Mar 28 15:30:16 2016
    On 3/28/2016 8:02 AM, bertdongen@gmail.com wrote:
    Hi all.

    Networkdrives are not displayed in my DrivelistBox.
    I googled a lot, but did not find a way to get them displayed.
    Not even drives with a driveletter.
    Guess that there is NO solution to this. Or is there?
    Bert.


    If you're talking about VB6, mapped network drives are shown the same as
    any other drive that's assigned a drive letter.

    The question is, are the network drives mapped in the user account
    you're running under? If you're running within the VB IDE in
    administrator mode and your drive mapping was done in the regular user
    mode, you won't see those mapped drives since you're running as a
    different user. Drive mapping is per-user, not per-machine.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bertdongen@gmail.com@21:1/5 to All on Tue Mar 29 03:38:07 2016
    Thank you for your reply, Tim and yes, I'm talking about VB6.
    I think that you're pointing at the right cause.
    I didn't know that drivemapping is per-user.
    In Windows Explorer I do see the drivemapping, but not
    in my VB6 application. That's a bit weird (I think), but
    I am possibly another user when I start the application.
    Could it be that my way of determining which user I am
    in the application is wrong? I use the following:

    Dim WshNetwork
    Set WshNetwork = CreateObject("Wscript.Network")
    ThisUser = WshNetwork.UserName

    Should I use a different procedure?
    Bert.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)