|
-
Feb 27th, 2013, 04:29 PM
#1
Thread Starter
Lively Member
The Version Updater
Hey guys, I bet that a lot of you have done this in the past, I have too, but since RipWay.com is down, I have no idea how to do it.
So, I created a txt file and posted it at MediaFire, but I have a problem, I could not find a way to download only the text from the file.
Used this code:
Code:
Dim UserName As String = Environment.UserName
Dim Path As String = "C:\Users\" & UserName & "\AppData\Roaming\ApplicationTest"
My.Computer.Network.DownloadFile("http://www.mediafire.com/edit/?etwzj0tb52jzmapwc2jesg5tjbz72bi", Path & "\Version.txt")
Now, I dont know if there is a bug in my code or just the site does not support this kind of downloading.
If you have any sugestions for a new FREE storage site, that would support this let me know, or if there is a bug aswell.
-
Feb 27th, 2013, 04:36 PM
#2
Re: The Version Updater
Both?
My.Computer.Network.DownloadFile
... works on a network, not on the Net!
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Feb 27th, 2013, 04:40 PM
#3
Thread Starter
Lively Member
Re: The Version Updater
I have absolutely no idea what you mean by both and by network not on the net either. I did this a long time ago in VS2008 and on one site that "supported" it.
(With the exactly same code)
-
Feb 27th, 2013, 04:49 PM
#4
Re: The Version Updater
Is there a 'bug'? Yes. It's the wrong code (I sincerely doubt that it ever worked!) My.Computer.Network is exactly that. The Network to which the computer belongs! If you want to download from the Net/Web/t'Internet (however you wanna call it) you need a WebClient.
Does the site support this kind of downloading? I very much doubt it. Apart from anything else it appears to need authentication!
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Feb 27th, 2013, 05:04 PM
#5
Thread Starter
Lively Member
Re: The Version Updater
Even this wont work. It has to be the site, any suggestions for better site?
Code:
Dim WebClient As New Net.WebClient
WebClient.DownloadFile("www.mediafire.com/view/?2wn1udonn1wbqbk", Path & "\Version.txt")
-
Feb 27th, 2013, 05:11 PM
#6
Re: The Version Updater
 Originally Posted by dunfiddlin
Is there a 'bug'? Yes. It's the wrong code (I sincerely doubt that it ever worked!) My.Computer.Network is exactly that. The Network to which the computer belongs! If you want to download from the Net/Web/t'Internet (however you wanna call it) you need a WebClient.
Does the site support this kind of downloading? I very much doubt it. Apart from anything else it appears to need authentication!
Well, actually My.Computer.Network.DownloadFile does support downloading from the Internet if you pass it an Uri...
I'd use a WebClient too...
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Feb 27th, 2013, 05:16 PM
#7
Re: The Version Updater
Well, if all you want is somewhere to park a text file for people to download, any simple web host will do. There's plenty of free one's around. You may need to set up an index page to give you a web 'presence' to maintain the site.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|