Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 131,687 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,508 people online right now. Registration is fast and FREE... Join Now!




set download location

 
Reply to this topicStart new topic

set download location

Damage
post 15 Oct, 2008 - 01:03 AM
Post #1


D.I.C Addict

Group Icon
Joined: 5 Jun, 2008
Posts: 728



Thanked 7 times

Dream Kudos: 75
My Contributions


is there a way to set the download location when using
CODE

  Dim wc As New Net.WebClient
        wc.DownloadFileAsync(New Uri(url), fileName)


it defaults to the bin directory of the project and i'd like to be able to change that
User is offlineProfile CardPM

Go to the top of the page


Bort
post 15 Oct, 2008 - 03:29 AM
Post #2


D.I.C Regular

Group Icon
Joined: 18 Sep, 2006
Posts: 390



Thanked 4 times

Dream Kudos: 350
My Contributions


Maybe have the filepath as part of the variable fileName?
User is online!Profile CardPM

Go to the top of the page

magicmonkey
post 15 Oct, 2008 - 07:15 AM
Post #3


D.I.C Regular

***
Joined: 12 Sep, 2008
Posts: 374



Thanked 64 times
My Contributions


vb

Dim Path as string = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
wc.DownloadFileAsync(New Uri(url), Path & "\" & fileName)
User is online!Profile CardPM

Go to the top of the page

Damage
post 15 Oct, 2008 - 02:22 PM
Post #4


D.I.C Addict

Group Icon
Joined: 5 Jun, 2008
Posts: 728



Thanked 7 times

Dream Kudos: 75
My Contributions


i really need to start paying more attention to things. Sorry for asking something that i should have realised for myself.

User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 08:02AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month