开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜