So I do have a file that I generate weekly from a server using crontab in Linux side and transfer it to my PC. However, I am having a problem when try to send the file that I generate from a different server on Windows side using task scheduler.
Daily upload of file automation using batch script and WinSCP
968 Views Asked by Alfred Paraiso At
2
There are 2 best solutions below
0

Develop a batch file which will download/upload the required file using the SCP
command
check this for more details.
check this for more details about the scp command parameters.
Make sure that you are able to run the batch with a successful result, then configure it within a scheduled task.
I hope this could help.
Your command-line syntax is wrong.
I'm assuming the
\ftpBinverlog_%yyyy%-%mm%-%dd%.txt
is the file, you want to download.%yyyy%
.So just keep your
/script
and/log
arguments:And make sure the
script.tmp
looks like:References:
%TIMESTAMP
syntax.