3 replies
by deerek11 Accepted solution
by thekonfuser Accepted solution
by ben.rattigan Accepted solution
I have stopped using mapped network drives. Add the network share you normally map to drive F and add it to your My Network Places instead.
Using My Network Places is better because it uses the proper UNC path.
You can go to My Networks Places and manually add the new network place or use the following script if you want it to add them at login.
Dim objNet
dim strUserName
Dim net
Dim WSHShell
Dim removedrives
Set WSHShell = CreateObject("WScript.Shell")
Const NETHOOD = &H13&
Set objWSHShell = CreateObject("Wscript.Shell")
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(NETHOOD)
Set objFolderItem = objFolder.Self
strNetHood = objFolderItem.Path
strShortcutName = "Custom folder name"
strShortcutPath = "\\server\folderpath"
WSCript.Quit
This discussion is closed to new replies.
Trending Hardware posts
Sort by Trending