Re: VB6 to refresh a website
- From: "BeastFish" <no@xxxxxxxx>
- Date: Sun, 6 May 2007 14:08:51 -0400
How are you getting the file from the website?
If the file has a consistant location (i.e.
http://whatever.com/somesub/somefile.txt), and assuming it is your website
and there is nothing preventing you from directly accessing the file, you
can use some wininet APIs (InternetOpen, InternetOpenURL, InternetReadFile,
InternetCloseHandle) to download the file directly in your VB app without
using a web browser. The downloadable API-Guide at
http://allapi.mentalis.org/agnet/apiguide.shtml has an example.
Or you can use the URLDownloadToFile API function of urlmon (API-Guide has
that as well). This would probably be the easiest implimentation for a
relatively small file (say, less than 10-20 seconds to download).
If the file is somewhat large and you'd need to show a progress indicator
(progress bar, etc.), that'll be a little more complicated than the basic
API-Guide examples referenced above.
"albertleng" <albertleng@xxxxxxxxx> wrote in message
news:1178462505.847988.290940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all.
Is there a way which i can use VB6 to refresh a website, for eg.
http://www.something.com/url...?
I need to do this because my program needs to download a file from a
webpage continuously in which the file will be updated constantly. We
notice that after the file is downloaded by my program, my program can
only download the file again after we press "Refresh" in Internet
Explorer on that website. If we don't "Refresh", the file won't be
there.
Since in future, nobody will be around the system, we need to refresh
the website automatically with my program.
Please help.
Thanks.
Albert
.
- Follow-Ups:
- Re: VB6 to refresh a website
- From: albertleng
- Re: VB6 to refresh a website
- References:
- VB6 to refresh a website
- From: albertleng
- VB6 to refresh a website
- Prev by Date: Problems with MciSendString
- Next by Date: Re: Can someone suggest a powerful GridView?
- Previous by thread: VB6 to refresh a website
- Next by thread: Re: VB6 to refresh a website
- Index(es):
Relevant Pages
|