You can simply map a drive which allows you to pass credentials. You can do
this with a DOS or WSH script.
-------------------
DOS Example
---------------------------------------------------------------
REM [Authenticate]
net use X: \\Server\Share /user:my_domain\user_ID user_pwd
IF NOT EXIST X:\*.* goto :ERROR_CONNECTING
The "/user:" switch of the "net use" command accepts accounts names in the
form of User Principles Names such as, user@my_domain.com, or the old
NetBIOS style names, my_domain\domain_user or server\local_user. You can
leave the password off, and you will be prompted for it when the script is
ran. An other option if you don't want the user's name and password embedded
in the script, is to have the credentials cached in Windows' "Protected
Store".
-------------------
WSH (vbScript) Example
---------------------------------------------------------------
Set oWS = WScript.CreateObject("WScript.Shell")
Set oWN = WScript.CreateObject("WScript.Network")
On Error Resume Next
Err.Clear
oWN.MapNetworkDrive "X:", "\\server\share", False, "my_domain\user_ID",
"user_pwd"
If Err.Number <> 0 Then
oWS.PopUp "Connection to one or more shares failed!", 3, "ERROR:
Authenticating", vbExclamation
Else
oWS.PopUp "All Shares mapped!", 1, "SUCCESSFUL: Authenticating",
vbInformation
End If
On Error GoTo 0