| Script mini downloader | |
|
|
Pengirim | Message |
---|
Black_box VIP Member
Jumlah posting : 149 Lokasi : NOYB Registration date : 02.02.08
| Subyek: Script mini downloader Mon Feb 18, 2008 9:22 pm | |
| Gw ada yang ngasi script ni, buat downloader sederhana pake VB. Kalo ada yang mo praktekin, silakan, gw belum nyoba, blm sempet.
Private Declare Function DoFileDownload Lib "shdocvw.dll" (ByVal lpszFile As String) As Long Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Private Sub cmdMethod1_Click() Dim thePath As String thePath = InputBox("What is the url to download the file?", " File Url", "http://") thePath = StrConv(thePath, vbUnicode) DoFileDownload thePath End Sub
Private Sub cmdMethod2_Click() Dim retVal As Long Dim theUrl As String Dim savePath As String Dim pathExist As Long theUrl = InputBox("What is the url you want to download?", " Url Path?", "http://") If theUrl = "" Then Exit Sub savePath = InputBox("What is the path and filename to save the url to?", " Path and Filename to save") If savePath = "" Then Exit Sub retVal = URLDownloadToFile(0, theUrl, savePath, 0, 0) If retVal = 0 Then MsgBox "File was downloaded successfully!", vbExclamation, " Download Successful" Else: MsgBox "There was a error downloading the file. Make sure that the url is valid and try again!", vbCritical, " Error" End If End Sub | |
|
| |
Admin Administrator
Jumlah posting : 358 Lokasi : Madiun - Malang Registration date : 25.01.08
| Subyek: Re: Script mini downloader Tue Feb 19, 2008 5:46 am | |
| Thanks mas black, kpn2 gw coba. | |
|
| |
Rizz VIP Member
Jumlah posting : 183 Lokasi : Hidden Registration date : 26.01.08
| Subyek: Re: Script mini downloader Tue Feb 19, 2008 4:10 pm | |
| | |
|
| |
Hang_ Moderator
Jumlah posting : 487 Age : 30 Lokasi : Northbridge Chipset Registration date : 08.02.08
| Subyek: Re: Script mini downloader Tue Feb 19, 2008 4:19 pm | |
| Waduh bahasa pemrograman VisualBasic ???? Give up aku | |
|
| |
Admin Administrator
Jumlah posting : 358 Lokasi : Madiun - Malang Registration date : 25.01.08
| Subyek: Re: Script mini downloader Tue Feb 19, 2008 6:13 pm | |
| Coba dibuat dulu aja. Fungsinya mungkin mempercepat waktu download | |
|
| |
Rizz VIP Member
Jumlah posting : 183 Lokasi : Hidden Registration date : 26.01.08
| Subyek: Re: Script mini downloader Tue Feb 19, 2008 6:24 pm | |
| tenanE? ? cr penggunaanx? | |
|
| |
Admin Administrator
Jumlah posting : 358 Lokasi : Madiun - Malang Registration date : 25.01.08
| Subyek: Re: Script mini downloader Tue Feb 19, 2008 6:33 pm | |
| blem gw coba hamk. Gw gak punya VB. Sabar ya | |
|
| |
Hang_ Moderator
Jumlah posting : 487 Age : 30 Lokasi : Northbridge Chipset Registration date : 08.02.08
| Subyek: Re: Script mini downloader Tue Feb 19, 2008 7:10 pm | |
| Udah lupa aku sm VB dulu waktu semester pertama matkul itu ada sih, cuman udah g kul 3 tahunan jd lupa Turbo pascal, Borland Delphi / C++ , C.net, J.net dll wuasss gak mudeng maneh gagal otak ku Tp ntar gw cuba maksimalkan kemampuan otak kananku deh thanks infonya | |
|
| |
Rizz VIP Member
Jumlah posting : 183 Lokasi : Hidden Registration date : 26.01.08
| Subyek: Re: Script mini downloader Wed Feb 20, 2008 6:00 am | |
| blm blajar smpe sni thank infox, wlpn gw jg gk phm | |
|
| |
dee_a_jenk Senior
Jumlah posting : 478 Age : 31 Lokasi : nederlands . surabaia . medhioen (NOW) Registration date : 16.02.08
| Subyek: Re: Script mini downloader Wed Feb 20, 2008 1:36 pm | |
| waduh ! akoo uda blajar VB . . . tapii . . . kok gag mudeng ya baca scriptna ?! hehehe . . . lum smpe kali ye .. . yauda , makasii iah maz wat infona koo cuba na | |
|
| |
Rizz VIP Member
Jumlah posting : 183 Lokasi : Hidden Registration date : 26.01.08
| Subyek: Re: Script mini downloader Wed Feb 20, 2008 5:24 pm | |
| VB it apalagi ya? :confuse: | |
|
| |
wild_an Moderator
Jumlah posting : 460 Age : 34 Lokasi : madiun town square Registration date : 18.03.08
| Subyek: Re: Script mini downloader Fri Mar 28, 2008 11:59 am | |
| pak boz admin dah coba ? dee uda coba ?
gmn2 ?
sukses g ? | |
|
| |
| Script mini downloader | |
|