G
Guest
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?
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?