Advertisement
Advertisement
| 09.12.2008 at 08:02AM PDT, ID: 23726629 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: |
Here is my code
------------------
Option Explicit
Dim objNetwork
Dim strDriveLetter, strRemotePath1,strRemotePath2, strUserName
strDriveLetter = "P:"
strRemotePath1 = "\\Johnson2."
strRemotePath2 = "\\Jappy4"
'1. create a form that prompts users for their username(firstname.lastname)
dim username,password
username=InputBox("Enter your username in this format [Firstname.Lastname]")
MsgBox("Your name is " & username)
password=InputBox("Enter your password:")
'2 Use credentials entered to login to \\bassey
' how can i do this using vbscript????
'3 Connect printers for users to have access.
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\bassey\zombie-70"
|