shell FTP script

@echo off
setlocal
cd\FTP\Upload\
ftp -n -d -s:C:\FTP\settings.txt
endlocal

//settings.txt:
open ftp.example.com
user usernamehere passwordhere
ascii
cd FolderName
cd SubFolderName
lcd C:\FTP\Upload\
prompt
mput *.*
quit
FTPs contents of a directory to a folder on an FTP server. Settings.txt contains the FTP settings used by the script.

Updated: Thursday 4th November 2010, 01:17pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.