Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #2278 > unrolled thread
| Started by | bertdongen@gmail.com |
|---|---|
| First post | 2016-03-28 06:02 -0700 |
| Last post | 2016-03-29 03:38 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.basic.visual.misc
Network drives in DrivelistBox. bertdongen@gmail.com - 2016-03-28 06:02 -0700
Re: Network drives in DrivelistBox. Tim Rude <timrude.nospam@nospam.hotmail.com> - 2016-03-28 15:30 -0500
Re: Network drives in DrivelistBox. bertdongen@gmail.com - 2016-03-29 03:38 -0700
| From | bertdongen@gmail.com |
|---|---|
| Date | 2016-03-28 06:02 -0700 |
| Subject | Network drives in DrivelistBox. |
| Message-ID | <c234dac2-895c-4c5d-b434-c4397b14af98@googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | Tim Rude <timrude.nospam@nospam.hotmail.com> |
|---|---|
| Date | 2016-03-28 15:30 -0500 |
| Message-ID | <ndc41p$a2k$1@dont-email.me> |
| In reply to | #2278 |
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.
[toc] | [prev] | [next] | [standalone]
| From | bertdongen@gmail.com |
|---|---|
| Date | 2016-03-29 03:38 -0700 |
| Message-ID | <b919ce21-afea-4654-8d5f-b9ad5eb18d69@googlegroups.com> |
| In reply to | #2278 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.basic.visual.misc
csiph-web