Results 1 to 8 of 8

Thread: Download

  1. #1
    MurphmanL
    Guest

    Download

    Anyone got any idea how to make a File Download in VB at the click of a command button? Ive tried the following code but to no avail lol, if anybody has a clue plz let me know

    EG:

    Private Sub Command1_Click()
    Download File : ("http://example.org//.exe")

    Obviously it didnt work, any ideas ppl?

  2. #2
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    make the button open "iexplorer.exe http://example.org//.exe" ?

  3. #3
    MurphmanL
    Guest
    Hmm no Luck... isn't there a small line of code u can give me that will just cause a downlaod box to open with the file i have specified?

  4. #4
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    hows about getting the button to..
    shell("c:\Progra~1\Intern~1\IEXPLORE.EXE http://example.org//.exe")

    ?

  5. #5
    MurphmanL
    Guest
    ok ill see what happens, is there a way to just make a Download box popup?

  6. #6
    MurphmanL
    Guest
    This code will do me nicely, thank you very much
    However if the file im linking to is a video, how can i tell the program to NOT launch media player, and to just DOWNLOAD the file instead?

  7. #7
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    not entirely sure, the download dialog is handled by the filetype settings from where ever the application is run or via the MIME header within the file you are downloading and I am afraid I know nothing about that :/

    if you still use the shell technique whatever solves it, will be internet explorer specific and nothing to do with VB.

    Ill have a quick look around for something else

  8. #8
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    just instruct users to right click and save as.. This is how most sites work.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Which download manager? (Windows)
    By malfunction in forum Software
    Replies: 4
    Last Post: 08-06-2004, 12:45 PM
  2. Is it possible to download updates and save the to a CD?
    By silent ben in forum Help! Quick Relief From Tech Headaches
    Replies: 3
    Last Post: 31-05-2004, 01:24 PM
  3. What old classic games are now FREE to download?
    By Jimmy Little in forum Gaming
    Replies: 7
    Last Post: 24-05-2004, 01:40 PM
  4. program to download cd covers?
    By Atomic in forum Software
    Replies: 9
    Last Post: 20-05-2004, 10:35 PM
  5. Where can I download.....
    By Lead_Head in forum Gaming
    Replies: 8
    Last Post: 27-09-2003, 03:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •