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.
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.