Synchronize with Windows 2008 Task Scheduler-files not found

Advertisement

tranceport
Joined:
Posts:
1
Location:
malta

Synchronize with Windows 2008 Task Scheduler-files not found

Hi All,

I'm having a problem using the Synchronize feature with Windows Task Scheduler.

Basically i have a Batch file running WinSCP Script that calls the synchronize local feature against a SFTP folder. the local directory is a mapped folder (P:) and is accessible by the scheduler.

The script looks like this:

open sftp://user:pass@thesite.com
option transfer binary
synchronize local P:\ /remotefolder
close
exit

The SFTP folder is updated at 6am, and i have a task to run the synchronize script as 7.30am. When this is run through the task scheduler the batch works completely fine but the synchronize is not finding the new files placed at 6am that day - and finding the rest. I setup the WinScp Logging and i can see it goes through the files but does not seem to "find" the new files.

When i review and run the task scheduler manually (from Task Scheduler clicking Run) the process works perfect and finds the files. Running the batch file directly works fine as well.

Has anyone encountered this problem? In terms of task privilege this should be ok as i have another task running running fine with same credentials and permissions.

Thanks in Advance!

Reply with quote

Advertisement

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

Re: Synchronize with Windows 2008 Task Scheduler-files not found

Please attach complete log files showing both scheduled and manual run.

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

Reply with quote

Advertisement

You can post new topics in this forum