Posted: 2012-10-24 09:30
I'm trying to use a script that copy a csv files to an ftp server then move the same files to other ftp server.
Main problem is that log file generated by winscp.com command contain only info about first connection and about second connection log file (with the same name) is located in lcd command path.
How can I solve this issue (having one log file for both connections)?
IF EXIST daily_d.log DEL daily_d.log
winscp.com /console /script=taskD.txt /log=daily_d.log
Ex (script tasD.txt)
# Automatically abort script on errors
option batch continue
# Disable overwrite confirmations that conflict with the previous
option confirm off
put *.csv /prognoza_nou/
put -delete *.csv /
# Exit WinSCP
Location: Prague, Czechia
Use full path to a log file.
Posted: 2012-10-25 13:16
I already split in two scripts the transfer to ftp servers. Thanks for your reply.
You can post new topics in this forum
And it's free!