Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: Winscp batch file running on demand or task scheduler

Can you please post logs for both scenarios? Also please elaborate on the "seems to".
dadress

Winscp batch file running on demand or task scheduler

I have a batch file. When I run the batch file manually file downloads with correct size. Issue is when its run via task scheduler it seems to download with a wrong size. Any ideas?

Sample from log file when it runs via task scheduler

< 2020-10-14 19:15:02.773 Script: Synchronizing...
. 2020-10-14 19:15:02.773 Synchronizing local directory 'C:\AHRLogs\Downloaded\' with remote directory '/logs/', params = 0x1002 (NoConfirmation, Mirror)
. 2020-10-14 19:15:02.773 File: '/logs/LOG_us_rec_multi_replica_2020101419.SQB' [2020-10-14T23:15:01.000Z] [6144]
< 2020-10-14 19:15:02.773 Script: Local 'C:\AHRLogs\Downloaded' <= Remote '/logs'
. 2020-10-14 19:15:02.773 Copying "/logs/LOG_us_rec_multi_replica_2020101419.SQB" to local directory started.
. 2020-10-14 19:15:02.773 Binary transfer mode selected.
. 2020-10-14 19:15:02.773 Opening remote file.
> 2020-10-14 19:15:02.773 Type: SSH_FXP_OPEN, Size: 62, Number: 2051
< 2020-10-14 19:15:02.773 Type: SSH_FXP_STATUS, Size: 19, Number: 1796
. 2020-10-14 19:15:02.773 Discarding reserved response
< 2020-10-14 19:15:02.804 Type: SSH_FXP_HANDLE, Size: 13, Number: 2051
> 2020-10-14 19:15:02.804 Type: SSH_FXP_FSTAT, Size: 13, Number: 2312
< 2020-10-14 19:15:02.820 Type: SSH_FXP_ATTRS, Size: 29, Number: 2312
> 2020-10-14 19:15:02.820 Type: SSH_FXP_READ, Size: 25, Number: 2565
< 2020-10-14 19:15:02.914 Status code: 1
. 2020-10-14 19:15:02.914 6 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2020-10-14 19:15:02.914 Type: SSH_FXP_CLOSE, Size: 13, Number: 3588
< 2020-10-14 19:15:02.945 Type: SSH_FXP_STATUS, Size: 19, Number: 3333
. 2020-10-14 19:15:02.945 Preserving timestamp [2020-10-14T23:15:01.000Z]
> 2020-10-14 19:15:02.961 Script: exit
. 2020-10-14 19:15:02.961 Script: Exit code: 0
. 2020-10-14 19:15:02.961 Closing connection.
. 2020-10-14 19:15:02.961 Sending special code: 12
. 2020-10-14 19:15:02.961 Sent EOF message