Topic "Synchronize with Windows 2008 Task Scheduler-files not found"

Author Message
tranceport
[View user's profile]

Joined: 2013-10-30
Posts: 1
Location: malta
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!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
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.

_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License