how can i run the download dialog box of internet explorer

You can talk about VB programming here

how can i run the download dialog box of internet explorer

Postby BattleStar-Galactica » Fri Mar 31, 2006 3:29 pm


I want to know how can I prompt the downloader dialog box of internet explorer by using shell execution.
I have seen some people do that before on some website but I do'nt remember how to do that.
example
shell execution "www.domaine\file.mp3"
this execution will prompt a dialog box ask me to choose the folder to save file.
how can i do that, thanks for your help
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby BattleStar-Galactica » Fri Mar 31, 2006 5:00 pm

here is the solution
Private Declare Function DoFileDownload Lib "shdocvw" _
(ByVal lpszFile As String) As Long
Private Sub Command1_Click()

Dim sDownload As String
sDownload="http://www.domaine.com/file.mp3"
sDownload = StrConv(sDownload, vbUnicode)
Call DoFileDownload(sDownload)

End Sub
it will promt the download dialog of internet explorer
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby locohacker » Sat Apr 01, 2006 7:09 am

I always wonder about something like this one thing does ie has to be open
:?:

Thanks
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4361
Joined: Fri Dec 31, 2004 6:59 pm

Postby BattleStar-Galactica » Sat Apr 01, 2006 10:03 am

good if these lines of code make you happy loco :lol: it's my goal too so i put the solution here :wink:
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby locohacker » Sat Apr 01, 2006 11:46 am

:) yeps we here to help each other :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4361
Joined: Fri Dec 31, 2004 6:59 pm


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests