Post a reply

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)


Topic review


SFTP upload script not moving files

Hello -
I'm having issues uploading files via SFTP to a remote host.Its supposed to move day old files to a temp folder, then upload those files to the sftp. I need it to run early morning through task scheduler but it doesn't move any files and i don't get any errors. If i run my batch file manually it works fine.. please help.

cd C:\temp
del /q *.*
ROBOCOPY /MAXAGE:1 \\\folder\folder\folder C:\temp
cd C:\Program Files (x86)\WinSCP /script=winscp.txt

Script file:

option batch off
option confirm off
open s
put C:\temp\*.* /tlogs/