So I do map drive on this way and it is successful ...
But I need to have mapped drive hidden from the client users
So I red that i might be possible if put $ after the share folder
but it does not work..
the other way is to set values in win registry, but I don't like that way... i would preffer the first way... any idea if I'm doing something wrong
Code:
Dim FSO As Object
Dim objFile As Object
Dim objFileS As Object
Dim WshNet As Object
persistent = false
set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "driveletter:", "\\server\sharename", persistent, "username", "password"
So I red that i might be possible if put $ after the share folder
Code:
objNetwork.MapNetworkDrive "driveletter:", "\\server\sharename$", persistent, "username", "password
"
the other way is to set values in win registry, but I don't like that way... i would preffer the first way... any idea if I'm doing something wrong
Last edited: