Re: How to download a file?
From: Sietse Wijnker (sietse.wijnker_at_ATsw-software.nl)
Date: 11/04/04
- Previous message: gana: "How to download a file?"
- In reply to: gana: "How to download a file?"
- Next in thread: gana: "Re: How to download a file?"
- Reply: gana: "Re: How to download a file?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Nov 2004 07:08:25 +0100
Hi Gana,
1,2,4:
For downloading a file from an internet file use:
DECLARE INTEGER URLDownloadToFile ;
IN urlmon.dll ;
INTEGER pCaller, ;
STRING szURL, ;
STRING szFileName,;
INTEGER dwReserved, ;
INTEGER lpfnCB
= URLDownloadToFile (0, lcURL, lcLocalFile, 0, 0)
Don't directly download the file overwriting the local file, but instead
download it to a temporary file. Then open that file and check it for
errors. If all is ok, overwrite the original file.
For more information on how to use this API-function takle a look at this
page:
http://support.microsoft.com/default.aspx?scid=kb;en-us;311306
3: Take a look at SET SAFETY OFF in the VFP help.
HTH,
Sietse Wijnker
"gana" <gana@discussions.microsoft.com> wrote in message
news:005FBEF3-D94F-4345-9D43-A75FC1C4B472@microsoft.com...
> Hi
>
> Thanks in advance.
>
> I use VFP7.
>
> I use a table "Update.dbf" in my program. I update this table very often
> and
> post it in my web site.
>
> I have a button in my program. The user clicks this button to download the
> "update.dbf" from my web site to replace the existing file in his machine.
>
> Can any one help me with the following :-
>
> 1. The user clicks a button
>
> 2. He must be automatically connected to my web site.
>
> 3. Existing file in the local machine has to be replaced with the
> downloaded
> file
> WITHOUT ANY DIALOGUE BOX asking him whether to replace the existing file.
>
> 4. The user must be notified that the download is complete.
>
> Can any one halp me how to do this?
>
> Thanks once again
> Gana
>
- Previous message: gana: "How to download a file?"
- In reply to: gana: "How to download a file?"
- Next in thread: gana: "Re: How to download a file?"
- Reply: gana: "Re: How to download a file?"
- Messages sorted by: [ date ] [ thread ]