Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

SarahY

SarahY wrote:

Hi,

I am a beginner and would like to use Windows Task Scheduler to automatically download files (e.g. pdf files) from one location (root/logs folder) to another (user/sarah/documents/log). I have read the 'Schedule File Transfer' guide and have tried using the following in the 'add arguments' box:

/command "option batch abort" "option confirm off" "open ftp://user:password@IPaddress" "get /root/Logs/*.pdf C:\Users\Sarah\Documents\Log\" "exit"

Could you please advise me where I went wrong? Thanks.


All fixed, turns out it should have been "Logs/*..." instead of "/root/Logs/..." :)
SarahY

Hi,

I am a beginner and would like to use Windows Task Scheduler to automatically download files (e.g. pdf files) from one location (root/logs folder) to another (user/sarah/documents/log). I have read the 'Schedule File Transfer' guide and have tried using the following in the 'add arguments' box:

/command "option batch abort" "option confirm off" "open ftp://user:password@IPaddress" "get /root/Logs/*.pdf C:\Users\Sarah\Documents\Log\" "exit"

Could you please advise me where I went wrong? Thanks.
Arjun

create a winscp command script

eg
open MITTEAM@10.207.30.52 -------this has to be a saved session in your winscp
option confirm off
option batch continue
option transfer binary
synchronize local E:\Logs\ /Incoming ---------sync the "/Incoming" on 10.207.30.52 with E:\Logs,
close
exit

you can call this script by a bat file and later can add the bat file to the windows scheduler to schedule
eg-
"C:\Program Files\WinSCP\winscp.com" /script="D:\Softy\LOGDOWNLOAD\pull.tar" /log="E:\Logs\Trace\pull_%dtStamp%.log"

here i'm logging the details using log="E:\Logs\Trace\pull_%dtStamp%.log, this is option if you dont need

cheers
colemanr

Windows Task Scheduler

Hi everyone I'm new WINSCP and from what I can tell I really enjoy using it. I'm having problems using the Windows Task Scheduler to Winscp and FTP a file over to a Unix server by automation. It seems like I can't get it over, but doing it manually. I'm thinking that its bombing on the Winscp commands part when it brings up another command line for Winscp, but I'm not completely sure. Any ideas?

I currently have Windows Task Scheduler openning up Winscp to a Saved session, but it doesn't or I can't figure out how to get it to copy a file over automated.

"C:\Program Files (x86)\WinSCP\WinSCP.exe"
"sadmin@198.68.33.43"