0

So I've got a code in VB that will download a txt file from a website. The problem is I want this file to be downloaded into whatever folder that my program is in.

for example, if my program was in C:\random_folder\ then I would want this txt file downloaded to C:\random_folder\

Here is some of my code:
Code:

My.Computer.Network.DownloadFile _
    ("http://www.mywebsite.com/test.txt", _
    "define where file should go here")

But in the spot to put where to place the file, I can't just put C:\random_folder\ because individual users may have this program installed in other parts of there computer.

Thanks alot in advance.

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by AndreRet
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.