FTPGetFile overwrite problem
From: David Baumgarten (DavidBaumgarten_at_discussions.microsoft.com)
Date: 02/03/05
- Next message: mfdatsw1: ".NET form and Web Browser control"
- Previous message: Francois Devaux: "combobox in mainmenu"
- Next in thread: Bruce Johnson [C# MVP]: "RE: FTPGetFile overwrite problem"
- Reply: Bruce Johnson [C# MVP]: "RE: FTPGetFile overwrite problem"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Feb 2005 08:35:09 -0800
I am trying to download a file from a ftp server and if the file already
exists to overwrite it.
Here is my code:
FtpGetFile(hConnection, "1.pdf", FLocation & "\Temp\" & "1.pdf",
False, 1, 0, 0)
If file does not exists then this returns true and downloads file.
If file already exists then this returns false and doesnt download file.
fFailIfExists
[in] Iindicates whether the function should proceed if a local file of the
specified name already exists. If fFailIfExists is TRUE and the local file
exists, FtpGetFile fails.
I figured setting this to false would overwrite the file. Am I confused?
If its not possible to overwrite a file, anyone have other suggestions?
- Next message: mfdatsw1: ".NET form and Web Browser control"
- Previous message: Francois Devaux: "combobox in mainmenu"
- Next in thread: Bruce Johnson [C# MVP]: "RE: FTPGetFile overwrite problem"
- Reply: Bruce Johnson [C# MVP]: "RE: FTPGetFile overwrite problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|