Anyone have an idea how to rename the mapped drive in this script. My old script (not listed) was able to rename it but I needed to mask the password so I rewrote the script and founddownloaded this .DLL file that someone created that allows the password to be masked. It uses different code so my old code is not working with it.
I found this .DLL at http://internet.cybermesa.com/~bstewart/passdlg/
I want to name the Drive “AUM Common”
Set WshNetwork = WScript.CreateObject(“WScript.Network”)
Set objPassDlg = CreateObject(“PassDlg.LogonDialog”)
strMessage = MsgBox(“Will you need AUM’s Common Drive Today?”, 36, “Welcome To AWA DET”)
If strMessage = 7 Then WScript.Quit
objPassDlg.Confirm = True
objPassDlg.ShowDialog “Connecting to AUM’s Common Drive”
If objPassDlg.Canceled Then
WshNetwork.MapNetworkDrive “K:”, “\xxx.xxx.xxx.xxxCommon”, False, objPassDlg.UserName, objPassDlg.Password
You must be logged in to reply to this topic.
Create a free account today to participate in forum conversations, comment on posts and more.