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

Kel

Re: script executing time is not as schedule

martin wrote:

This is unlikely WinSCP issue. WinSCP has no control over a time, when it is executed by Windows Scheduler.


Thank Martin your comment
martin

Re: script executing time is not as schedule

This is unlikely WinSCP issue. WinSCP has no control over a time, when it is executed by Windows Scheduler.
Kel

script executing time is not as schedule

I have script to get the file like below command ftplistobjShell.Exec("cmd /C D:\Tools\WinSCP5.9.1\winscp.com /script=C:\auto\ftpscript.txt /log=C:\auto\ftplog.txt").
the ftpscript.txt file content is like below:
option batch abort
option confirm off
open sftp://idxxxx:pwdxxxx@serverIP:portnumber -hostkey
cd /remote/ftpfolder
lcd D:\DownloadTempFolder\
get File_20180422_08*.txt
exit
I run the script at 8:10 am daily by schedule, but sometime I found the script run time after 8:10 am schedule. you can see the run time in ftp log file in below.

. 2018-04-22 08:25:51.734 --------------------------------------------------------------------------
. 2018-04-22 08:25:51.734 WinSCP Version 5.9.1 (Build 6885) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)
. 2018-04-22 08:25:51.734 Configuration: D:\Tools\WinSCP5.9.1\WinSCP.ini
. 2018-04-22 08:25:51.734 Log level: Normal
=============================================

I use the window 7 schedule manager to schedule the script job.
does winscp any setting for this or what happen?
thanks.