Simple FTP

pekajo

Registered User.
Local time
Today, 21:47
Joined
Jul 25, 2011
Messages
136
Hi,
What is the simplest vba way of FTPing html file to hosting.
Thanks for any help.
Peter
 
Simplest might be to build a batch file using VBA and then run it via SHELL. Looks like there is less typing.

FTP command-line options are listed here:


You would simply build a file with text lines such as

Code:
FTP
OPEN computer port
<<<<probably will have to put a password here for logging in to the target computer>>>>
TYPE <<<<either ASCII or BINARY depending on what you are sending>>>>
CD <<<<set remote directory>>>>
LCD <<<<set local directory>>>>
PUT filename    <<<<or could be GET filename>>>>
DISCONNECT
QUIT

Of course, where I've got things in <<<<>>>> you need to substitute appropriate values.
This would do the job. Note, however, that SHELL runs things asynchronously so MIGHT finish either before or after Access does whatever it was supposed to do.
 

Users who are viewing this thread

Back
Top Bottom