help with my downloader?
welcome to Game-Tuts.com - Register
Results 1 to 5 of 5
  1. #1
    VIP
    Join Date
    Dec 2009
    Age
    20
    Posts
    125
    Thanks
    2

    Angry help with my downloader?

    hey im trying to finish of my downloader but get a error when i press download.


    code:
    Code:
    My.Computer.Network.DownloadFile(Label2.Text, "C:\program.exe")
                My.Computer.FileSystem.MoveFile("c:\program.exe", Application.StartupPath)

    the label2 is what the url is just saying lol,
    i have changed it round but it still dont work. it downloads the file but then it dont move it.
    Thats when i get the error :(

  2. #2
    VIP

    Join Date
    Jul 2010
    Location
    In Johnson's basement.
    Age
    71
    Posts
    757
    Thanks
    83
    Gamertag
    Nope.AVI

    Default Re: help with my downloader?

    Why not just use jdownloader? Google it way better than what your using I can already tell.

  3. #3
    VIP
    Join Date
    Dec 2009
    Age
    20
    Posts
    125
    Thanks
    2

    Default Re: help with my downloader?

    Quote Originally Posted by BULLDOG266 View Post
    Why not just use jdownloader? Google it way better than what your using I can already tell.
    Im making my own lol, and plus its not only for downloading. Thats why i need help with that part of code -.-

  4. #4
    VIP
    Join Date
    Dec 2009
    Location
    UK
    Posts
    5,971
    Thanks
    690

    Default Re: help with my downloader?

    Code:
    System.Net.WebClient WebClient = new System.Net.WebClient();
    WebClient.DownloadFile(Label2.Text, Application.StartupPath + "\HaX.exe");
    WebClient.Dispose();
    edit: soz VB
    Code:
    dim WebClient as new System.Net.WebClient()
    WebClient.DownloadFile(Label2.Text, Application.StartupPath + "\HaX.exe")
    WebClient.Dispose()
    <.< there's no difference
    Last edited by godzcheater; 12-07-2011 at 04:23 PM.

  5. #5
    Everybody Lies

    Join Date
    May 2009
    Age
    18
    Posts
    3,919
    Thanks
    2363

    Default Re: help with my downloader?

    Quote Originally Posted by godzcheater View Post
    Code:
    System.Net.WebClient WebClient = new System.Net.WebClient();
    WebClient.DownloadFile(Label2.Text, Application.StartupPath + "\HaX.exe");
    WebClient.Dispose();
    edit: soz VB
    Code:
    dim WebClient as new System.Net.WebClient()
    WebClient.DownloadFile(Label2.Text, Application.StartupPath + "\HaX.exe")
    WebClient.Dispose()
    <.< there's no difference
    Beat me to it. OP got his answer.
    Closed



 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
visit GameTuts on these social networking sites