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

martin

Re: Task Scheduler Not Working Well

To debug this, wrap the winscp.com call to a batch file and redirect its output to a file:

winscp.com /command .... > c:\path\winscp.out

And reference the batch file in Scheduler, instead of the WinSCP.

Try to run and inspect the winscp.out.

Make sure the scheduler account has a write access to the path.
itzsnider

still nothing - I don't see anything launch, it just says running.
martin

Re: Task Scheduler Not Working Well

I assume you wanted to do:

... "get * ""C:\Users\USER\OneDrive\Auditing\Data Courier\POC to REL\""" ...

Note that there's no -r switch to get (it's recursive implicitly)
itzsnider

Task Scheduler Not Working Well

Okay so I am trying to sftp to my server, grab all files in the directory, and then put them into my OneDrive folder locally.

What am I missing?

/command "open sftp://username:pwd@hostname/" "cd /epic/prdfiles/foundations/auditreports" "get -r *" "put C:\Users\USER\OneDrive\Auditing\Data Courier\POC to REL" "exit"[/m]