unable to run as a scheduled task
Having problem getting WinSCP to run as a scheduled task on a windows machine.
I have a scheduled task running nightly that calls winscp.cmd which looks like this:
the script looks like this:
It runs if I manually run the scheduled task.
I have a scheduled task running nightly that calls winscp.cmd which looks like this:
"C:\Program Files\WinSCP\WinSCP.exe" /console /script=winscp_transfer.txt /log=C:\pep\logs\era_transfer.txt
the script looks like this:
# Automatically answer all prompts negatively not to stall # the script on errors # option batch on # Disable overwrite confirmations that conflict with the previous option confirm off # Connect open <username>:<password>@server.com # Force binary mode transfer option transfer binary # Download file to the local directory c:\era\ get *.* c:\era\ # Remove transferred files from server rm *.* # Disconnect close # Exit WinSCP exit
It runs if I manually run the scheduled task.