
Originally Posted by
tri_94
Yes i am going to need a username and password to connect to the server. so is there a way of adding that in the code? i can setup a user with access to all home folders.
Should be able to just add Code:
/user:domain\username password
on end of code like this:
Code:
strInput = InputBox( "Enter your name now!!!", "DriveMapping")
dim oShell
Set oShell = CreateObject("WScript.Shell")
oShell.Run "NET USE X: \\server\" & strInput & "$ /user:domain\username password" Not tested though,
Steve