Write the following code into a Batch file & click:
@echo off
del /Q DosFtpFile.ftp
echo FTP_USER_NAME> DosFtpFile.ftp
echo FTP_PASSWORD>> DosFtpFile.ftp
FOR %%i IN (*.txt) DO echo put %%i>> DosFtpFile.ftp
echo bye>> DosFtpFile.ftp
ping -n 3 127.0.0.1 >NUL
ftp -s:DosFtpFile.ftp FTP_MACHINE_NAME/IP
The above code will help you to send automatically all *.txt file into a specific FTP server.
Note that, you can change *.txt or *.csv or as your required.
No comments:
Post a Comment