468,791 Members | 1,781 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,791 developers. It's quick & easy.

Download file from a location on the WWW

Hi,

how can I connect to a restricted directory on a server and download a
file, if there is a newer version, than the one on the local file system?

Something like

http://user:pa**@www.myserver.com/re...y/thefile.file

Thanks,

Martin
Nov 16 '05 #1
4 1612
In article <u2**************@TK2MSFTNGP12.phx.gbl>,
mp*****@nospam.nospam says...
Hi,

how can I connect to a restricted directory on a server and download a
file, if there is a newer version, than the one on the local file system?

Something like

http://user:pa**@www.myserver.com/re...y/thefile.file


Check out the WebClient.DownloadFile Method. Not sure about the
security aspect of it though.

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 16 '05 #2
Hi Martin,

Yes, I think you may follow Patrick's suggestion to use
WebClient.DownloadFile Method to download file from your server.

Before doing this through program, you may first determine it through
download it through IE.

For more information about using this, you may search
WebClient.DownloadFile in groups.google.com, there are a lot of discussion
about this, and it may help you.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #3
Hi,

I guess this will help me quit alot. I will check on this and get back.
If I resolve this question I will post my solution beneath this thread.

Thanks so far,

Martin

Jeffrey Tan[MSFT] wrote:
Hi Martin,

Yes, I think you may follow Patrick's suggestion to use
WebClient.DownloadFile Method to download file from your server.

Before doing this through program, you may first determine it through
download it through IE.

For more information about using this, you may search
WebClient.DownloadFile in groups.google.com, there are a lot of discussion
about this, and it may help you.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #4
Hi Martin,

Ok,

I will wait for your feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Matthew Sims | last post: by
1 post views Thread by toedipper | last post: by
3 posts views Thread by James Kirk | last post: by
14 posts views Thread by Aaron | last post: by
1 post views Thread by Steve | last post: by
1 post views Thread by Iulian | last post: by
4 posts views Thread by Gary | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.