Wie wäre es mit ein VBS script?
Code:
' MNDArguments.vbs
' VBScript to map a network drive with all 5 arguments.
' Author Guy Thomas http://computerperformance.co.uk/
' Version 1.3 - April 24th 2005
' ----------------------------------------------------------------------'
Option Explicit
Dim objNetwork
Dim strDriveLetter, strRemotePath, strUser, strPassword, strProfile
' Values of variables set
strDriveLetter = "H:"
strRemotePath = "\alanhome"
strUser = "guytom"
strPassword = "£@ssw0rd1"
strProfile = "false"
' This section creates a network object. (objNetwork)
' Then apply MapNetworkDrive method. Result H: drive
' Note, this script features 5 arguments on lines 21/22.
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath, _
strProfile, strUser, strPassword
' Extra code just to add a message box
WScript.Echo " Launch Explorer, check: "& strDriveLetter
WScript.Quit
' End of Example script .
Quelle:
http://www.computerperformance.co.uk/Logon...e_arguments.htm
Ich gebe ehrlich zu, VBS ist auch nicht meine bevorzugte Sprache, aber als schnelle Lösung...
VDB