Monday, October 14, 2013

Connect FTP through Batch file and transfer file


Create copy.bat file and copy following code
this code will connect ftp server with its user name and password
this code transfer the local files on to the FTP server, Note this batch file need to scheduled on
windows schedule task to run this specific task


 
@ftp -i -s:"%~f0"&GOTO:EOF

open 210.212.176.115

FTP-Username 

FTP-Password

lcd c:\WEIGHBRIDGE

binary

mput "*.*"

::!move c:\chpdata\data\*.* c:\chpdata\backupdata\

disconnect

bye



pause

No comments:

Post a Comment