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