PPowerHouseK:
I need to maintain the sub directories.
Use this script. I have been using it. Works like a charm.
http://www.biterscripting.com/helppages/SS_FTPUpload.htmlYou don't have to look at the code. They have already written for us. We just use their pre-written script. This script is automatically installed with biterscripting.
It uploads all files under a top directory.
It will maintain the directory structure. And, it will create subdirectories as necessary. In short, it will mirror the entire directory structure from your computer to the FTP server. And, it will upload files in appropriate mode, text for .html, binary for .gif, etc.
It's pretty simple to use. All you have to do is to start biterscripting, and enter command.
script "SS_FTPUpload.txt" ftpserver("ftp.mycompany.com") ftplogin("me") ftppassword("my password") localpath("/mywebsite") remotepath("/pages")
Enter the whole above command on one line. Use correct values in place of "ftp.mycompany.com", "me", "my password", etc. Then, sit back and watch it do its work - directory by directory, file by file.