Saturday, June 03, 2006 - Posts

ANN: FTP Upload Utility - ftpupload.exe

Here's a free little utility I wrote for uploading files to an ftp site in one command, from the command prompt. You can download the utility here.

We all know that downloading files from an FTP site is easy, you can do that in explorer. But uploading is a bit more tricky. You can use the ftp.exe command from the prompt, but this requires you to understand the FTP commands. The ftp program also doesn't allow you to automate uploads because it requires user interaction.

Uploading files automatically is exactly what I wanted to do, so to solve this problem I created a utility whole sole purpose is to upload a file to an FTP server.

To upload the file you simply run:

ftpupload [servername] [username] [password] [serverpath] [localfile]

Where...

servername = the host name of the server, eg. ftp.yourdomain.com.
username = the user name used to login to the FTP server
password = the password
serverpath = the path on the server to put the file. If this includes spaces, enclose the path in double quotes. eg. "/files"
localfile = the file on the local machine to upload. If this includes spaces, enclose the file in double quotes, eg. "c:\myfiles\blah.zip"

Files are uploaded in binary mode. Progress is indicated as the file is uploaded.

I find this utility particularly useful for backing up files to a web site automatically, as the upload can be run from a DOS batch file on a schedule.

Let me know if you find any bugs.