Topic "Task Scheduler Not Working Well"

Author Message
itzsnider

Guest


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]
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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

Guest


still nothing - I don't see anything launch, it just says running.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License