Quick Search for:  in language:    
control,download,given,local,file,stop,proces
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 115. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!A#vb Undernet suczs
By Xasan on 6/30

(Screen Shot)

CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to see a screenshot of this code!Game of life clone (cool math)
By Johannes B on 6/30

(Screen Shot)

String to CHR()
By Nikhil Raj on 6/30


Encryption Decryption Demo
By Nikhil Raj on 6/30


Click here to see a screenshot of this code!Serial Registration
By Christian (eXonite Team) on 6/30

(Screen Shot)

Click here to see a screenshot of this code!Danger:Can pc kill me? interesting article
By Xasan on 6/30

(Screen Shot)

AniViewer
By Jerrame Hertz on 6/30


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Internet File Control (File Properties and Download, with Resume Function) UPDATED!

Print
Email
 
winzip icon
Submitted on: 8/4/2000 3:58:28 PM
By: Dirk Hottes 
Level: Advanced
User Rating: By 20 Users
Compatibility:VB 4.0 (32-bit), VB 5.0, VB 6.0

Users have accessed this code 13186 times.
 
 
     This control download a given Url to a local file. You can stop the download process on any time and resume it later. With this control you can also get information, like filesize, last modification date and if the file exists, about an given url. This control doesn't use any ActiveX control. Code is completly written with WinInet Api.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
8/4/2000 4:01:27 PM:Dirk Hottes
If you like this little snippet, please 
vote for it. I just want to know, if 
i'm going to build more of such samples 
the next time or not.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/4/2000 4:05:32 PM:Austin
looks promising. is there a way to 
automatically capture downloads started 
with IE, and send them to a VB program 
like this one? I have seen this done by 
other shareware programs in different 
languages. One was called 
GoZilla...
-Austin
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/4/2000 5:31:45 PM:Matt
Good code but one question. Where does 
it save the file to?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/5/2000 4:38:22 AM:Dirk Hottes
You can set the Filename, where the 
control will save the file, by setting 
the localfile property.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/5/2000 6:48:57 AM:beppe
It is good. It would be better if it 
would have the possibility to POST 
value pairs to web pages.
Actually 
it does not take to much time to add it 
to it (but it is a little bit tricky)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/5/2000 7:01:42 AM:Dirk Hottes
What would you like to post exactly? 
Can you give me an example, so I can 
figure out how it works and update this 
control for the PSC-Community. Maybe it 
is possible to build a perfect ActiveX 
Control for the internet with some guys 
here on PSC. If someone is interested 
in developing such a component with me, 
please leave a message, or mail me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/5/2000 9:07:45 AM:Christian
I think we should avoid activex 
controls as much as we can, cuz it 
takes up space in your 
installation.
It is posible to make 
this or anything else work like 
Godzilla and Getright, but it will 
requiere some advanced hwnd 
programming.
It dosnt seem like the 
PROXY function is fully supported. It 
didnt work for me. If there is some 
detailed informations about useing 
PROXY servers please email me.
Chris
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/5/2000 1:01:19 PM:Dirk Hottes
It seems to be, that everyone wants to 
write a program, like Gozilla or 
GetRight ;-). I have written such a 
application a year ago, so I think I 
will finish this project and post it 
here on PSC.
Christian: Please check 
your Proxy settings, if the proxy 
settings are ok and it still doesn't 
work, please leave a message about your 
system configuration, so I can check it 
here on my network. I'm using a 
Sambar-Server and it works fine for 
me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/7/2000 3:54:11 AM:Thomas Miller
This was, what I needed. I give you an 
EXCELLENT. Keep Coding.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/8/2000 9:09:02 AM:matrox
I have having trouble with the resume 
part.  i try to download something from 
a site that does not give the file 
size, and when i try to resume  it 
starts over again.  does this mean that 
the site does not support download 
resuming?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/8/2000 9:16:55 AM:matrox
i checked the site i was trying to 
download from and gozilla says that it 
supports download resuming.  Got any 
ideas?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/9/2000 1:24:41 AM:Thomas Miller
@matrox: I've tested the Resume Part on 
many different maschines and it seems 
to be ok. Be sure not to delete the 
file before resuming, because the 
control automatically set the 
filepointer to the filesize of the 
localfilename. Everytime you resume the 
download the Url and the localfilename 
has to be the same. I'm currently 
developing a control wich supports much 
more features and more stable, so keep 
your eyes open and watch for 
'InternetFile Control'.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/9/2000 2:43:03 AM:Thomas Miller
Ok, Dirk Hottes and I, have built a new 
control, wich is simpler to use, as 
this one. You can now choose a 
Connectiontype. Preconfig --> Internet 
Explorer Settings, Proxy --> Given 
Proxy, Direct --> Direct Connection. We 
have also fixed some bugs, with the 
proxy support. Dirk will upload the 
file when he is back from work. This 
must be 8am or 9am in the States.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/9/2000 10:14:59 PM:matrox
did he upload it??
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/10/2000 9:26:43 AM:Dirk Hottes
OK I've uploaded the new Version of the 
control. Please tell me or Thomas, if 
something is missing, or does not work. 
By the way, Thanks Thomas
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/10/2000 2:16:39 PM:matrox
i have figured out why i could not get 
the file size.  i was trying to 
download from a ftp url.  when you use 
this to download from a ftp url it does 
not report the file size and the resume 
can be kinda unstable, like not working 
sometimes.  just thought i would let 
you know about it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/11/2000 3:30:23 AM:Dirk Hottes
Thanks matrox, i will send you an 
email, when Thomas and I have realized 
the ftp stuff. Thanks for your 
comments, if you have any troubles you 
can send me an email. ;-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/13/2000 5:00:06 AM:Eric Malamisura
This is pretty good code.  It seems 
everyone follows a trend on the coding 
trail =]  Has more functionality than 
my source code did and is very well 
done.  I give you congrats on this.  
Keep up the good work guys.  I 
struggled through the winsock thing 
long enough til I got fed up with it 
hehe.  Excellent Rating from me =]
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/27/2000 1:50:04 AM:AnDy2552
Good code. I gave excellent for this. 
However, the proxy thing is a bit buggy 
especially if the proxy has cached 
infor in it. 
Maybe you need to be 
able to specify how many bytes to 
rollback.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/27/2000 11:40:58 AM:Carlos Escobar
seems to be missing clsFileDownload.cls 
file
???
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/29/2000 9:40:15 AM:Plinio
Excellent code, it's a really must 
have
from PSC.
Good work D.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/1/2000 12:30:52 AM:Benjo Bartolome
Very nice!
Expecially if you can 
integrate it with the default browser 
so when he clicks a link to a ZIP file 
for example, it launches this program 
automatically.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/12/2001 9:38:35 PM:Dennis Willett
I downloaded this code but something 
seems to be missing. When I try to open 
downloadacivx.vbp it is looking for 
clsDOWNLOAD.cls but the file is not 
zipped in the package. Am I missing 
something here?
Dennis 
(WILLETTD1@JUNO.COM)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/16/2001 1:06:26 PM:MAGiC MANiAC^mTo
Hi, I think this code is compleet when 
I also can upload files to FTP-hosts, 
because then I can write my own code 
with the help of using this good 
code.
I'm a webmaster and I want to 
download files in a schedular to upload 
it automatic on my site this helps me 
to update my site and always be up to 
date, I know that I can use ftp 
applications, but I like to have my own 
code to change things (for example) in 
a page before I upload the page to my 
site...
(the current download code 
is really stable, it downloads 
everything I want to 
download)...
This Code 
Rulez!...
Thanks for the 
code!...
MAGiC 
MANiAC^mTo
mto@kabelfoon.nl
http://w
ww.welcome.to/mto
http://downloadtools.
startkabel.nl
http://java.startkabel.nl
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/23/2002 2:23:20 PM:mario
can i use your code as basic for a 
freeware download-agent from me?
i 
made new features to it...
thanks for 
feedback
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/15/2002 10:39:02 AM:Cobwebs
The cobwebs are forming now, a couple 
years lat8r down the track since its 
original posting of this 
code...
Very good, except it still 
contains bugs, which I would never be 
able to fix myself, I hate winsock 
coding.
The proxy/direct connection 
does not work, if you download a file, 
then delete the test.bin file it 
creates, then download it again, it 
seems to have a "cached" version of it 
and does not download the file???  Is 
this winsock doing this or is this an 
error in the proxy/direct connection 
interface?
Also, the fileexist 
function doesn't work, not sure why, 
but I enter a filename that should 
return a 404 Not found page, and the 
function still returns true for 
fileexists.
Nice code otherwise, I'd 
help fix these bugs, but Im a winsock 
klux klan.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/22/2002 7:14:56 PM:JustinTheCodeMonkey
I Have been programming in many lang. 
for more then 10 years and have to say 
that this is an awsome program. Thanks!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/7/2002 10:16:37 PM:
Good program!! but
missing 
clsFileDownload.cls  !!!!
hope u will 
include this file soon!
i suggest when 
u make the prog from other directory 
just copy it all the project *.bas, 
*.frm *.cls in one directory..
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/14/2002 4:07:01 AM:Serpooshan
thanks for your submission, share it 
for all
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/8/2003 12:51:07 PM:
Very good code!  But the "Download 
ActiveX" project is missing the 
clsFileDownload.cls.  Any plans to 
update this submission?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.