FTP Command to upload file
A small but useful piece of information for uploading a file to FTP from batch file
Put the command in batch file:
ftp -i -s:ftpComm,txt -n <ftp servername>
Create a file with ftp commands(ftpComm,txt):
USER username password
bi
cd buildDir
mput c:\new.sql
bye
Put the command in batch file:
ftp -i -s:ftpComm,txt -n <ftp servername>
Create a file with ftp commands(ftpComm,txt):
USER username password
bi
cd buildDir
mput c:\new.sql
bye
Comments
Post a Comment