Tuesday, May 11, 2004

Automate FTP Uploading and Downloading

A feature of the windows console ftp client that not a lot of people know of is the ability to run a script.
This can be really useful for automating web site content release. Just write a script to upload all your regularly changing files to your server, and you can release with a double click!
Not only can you automate file transfers, but also the login / logout process.

Here is an example script:

open [your server address]
[username]
[password]
put default.asp
put links.asp
get trace.xml
bye

To use this script, simply enter

ftp -s:[scriptfilename]

You could write a bat file with the above line, to enable a double click release.

No comments: