VB-Script zum verbinden von Webdav
NET USE gibt immer viele FehlerEine Alternative dazu ist folgednes Script
webdav.vbs
--------------------------------------------------
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "I:" , "https://www.ressource.com/path/to/folder/", false, "username", "password"
--------------------------------------------------
Quelle: http://ss64.com/vb/mapnetworkdrive.html
Syntax objNetwork.MapNetworkDrive(strLocalDrive, strRemoteShare, [persistent], [strUser], [strPassword]) Key objNetwork : A WScript.network object strLocalDrive : The drive letter (e.g. L:) strRemoteShare : The UNC path to the remote drive \\MyServer\MyPrinter (String value) persistent : True/False - store the mapping persistently in the users profile default = false strUser : The user name. (Optional) strPassword : The password. (Optional)
Keine Kommentare:
Kommentar veröffentlichen