Results 1 to 7 of 7

Thread: The Version Updater

  1. #1

    Thread Starter
    Lively Member FireDust's Avatar
    Join Date
    Feb 2013
    Location
    Slovakia
    Posts
    112

    Question 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.

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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!

  3. #3

    Thread Starter
    Lively Member FireDust's Avatar
    Join Date
    Feb 2013
    Location
    Slovakia
    Posts
    112

    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)

  4. #4
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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!

  5. #5

    Thread Starter
    Lively Member FireDust's Avatar
    Join Date
    Feb 2013
    Location
    Slovakia
    Posts
    112

    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")

  6. #6
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: The Version Updater

    Quote Originally Posted by dunfiddlin View Post
    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 -

  7. #7
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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
  •  



Click Here to Expand Forum to Full Width