开发者

How to mount WebDAV share programmatically on Windows 7/Vista without assigning drive letter?

开发者 https://www.devze.com 2023-04-08 16:29 出处:网络
I need to mount WebDAV share programmatically on Windows 7/Vista without assigning drive letter. I know

I need to mount WebDAV share programmatically on Windows 7/Vista without assigning drive letter. I know

net use

and

WScript.CreateObject('WScript.Network').MapNetworkDrive('E:', 'http://server/');

can mount WebDAV but they require drive letter. Any chance to mount WebDAV without assignin开发者_高级运维g drive letter? For example Add Network Location Wizard can do this.


Use this to provide the credentials:

net use \\www.foobar.baz\folder /USER:Foo /PASS:Bar

Then, you can use the WebDAV drive by its UNC name (myCoolCommand.exe \\www.foobar.baz\folder)

0

精彩评论

暂无评论...
验证码 换一张
取 消