I'm not a vb programmer but couldn't you just call up the ftp dos command? Once you are connected to the FTP server you can use the -s:filename switch to call the FTP commands required to PUT the *.* from any directory to the FTP Server.
Here's the syntax:
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-A] [-x:sendbuffer] [-r:recvbuf
fer] [-b:asyncbuffers] [-w:windowsize] [host]
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
-r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
-b:async count Overrides the default async count of 3
-w:windowsize Overrides the default transfer buffer size of 65535.
host Specifies the host name or IP address of the remote
host to connect to.
Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
(sometimes called a daemon). Ftp can be used interactively.
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-A] [-x:sendbuffer] [-r:recvbuf
fer] [-b:asyncbuffers] [-w:windowsize] [host]
-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
-r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
-b:async count Overrides the default async count of 3
-w:windowsize Overrides the default transfer buffer size of 65535.
host Specifies the host name or IP address of the remote
host to connect to.
Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
If you have already uploaded a file previously - it got created/modified attributes on the server at the time of uploading. Your local timestamp on the file may be older and when you try to upload using webdav you get conflict as you try to upload older file. Hi, I have an excel VBA project and i wish to have the vba code upload a file to my godaddy website. I believe I have. GoDaddy Web Hosting.
-->The UploadFile method can be used to upload a file and store it to a remote location. If the
ShowUI
parameter is set to True
, a dialog box is displayed that shows the progress of the upload and allows users to cancel the operation.To upload a file
- Use the
UploadFile
method to upload a file, specifying the source file's location and the target directory location as a string or URI (Uniform Resource Identifier).This example uploads the fileOrder.txt
tohttp://www.cohowinery.com/uploads.aspx
.
To upload a file and show the progress of the operation
- Use the
UploadFile
method to upload a file, specifying the source file's location and the target directory location as a string or URI. This example uploads the fileOrder.txt
tohttp://www.cohowinery.com/uploads.aspx
without supplying a user name or password, shows the progress of the upload, and has a time-out interval of 500 milliseconds.
To upload a file, supplying a user name and password
- Use the
UploadFile
method to upload a file, specifying the source file's location and the target directory location as a string or URI, and specifying the user name and the password. This example uploads the fileOrder.txt
tohttp://www.cohowinery.com/uploads.aspx
, supplying the user nameanonymous
and a blank password.
Robust Programming
The following conditions may throw an exception:
- The local file path is not valid (ArgumentException).
- Authentication failed (SecurityException).
- The connection timed out (TimeoutException).