script executing time is not as schedule

Advertisement

Kel
Guest

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

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.

Reply with quote

Kel
Guest

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

Reply with quote

Advertisement

You can post new topics in this forum