开发者

Downloading a file using internet explorer credentials in VB.NET

开发者 https://www.devze.com 2023-04-05 21:10 出处:网络
I want to download a file in VB.net from a website that requires credentials, all my users have their credentials to this website saved in th开发者_开发技巧eir IE settings.

I want to download a file in VB.net from a website that requires credentials, all my users have their credentials to this website saved in th开发者_开发技巧eir IE settings. Is there a way to download a file from this website using the IE credentials? I'm trying to avoid from asking my users for their credentials.

thanks.

Edit: I need to download many files, so i need a way to download the files programmatically.


just invoke this command from Process.Start:

explorer http://www......

this only works if you have the full url of the file you want to download. In case the default browser is not IE you should replace explorer with iexplore

0

精彩评论

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