BGInfo - Visual Basic Script to Show Mapped Drives

Charles Waters 0 Reputation points
2024-01-30T20:10:07.8333333+00:00

Hello all. I am trying to use BGInfo to show mapped drives when logging in to a server. With the limited amount of options we have, and no ability to utilize PowerShell, I came up with these two: Set WshNetwork = CreateObject("WScript.Network") Set oDrives = WshNetwork.EnumNetworkDrives For i = 0 to oDrives.Count - 1 Step 2 Echo oDrives.Item(i) & " = " & oDrives.Item(i+1) Next That doesn't pop up any validation errors in BGInfo, but also does not show any of the following mapped or redirected drives from my laptop:MappedDrives

What am I doing wrong? I am trying to show mapped and redirected drives in this: BGInfo

Thank you, and I appreciate any and all help to get this done.

Developer technologies | VB
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.